MCPcopy Create free account
hub / github.com/Xu22Web/tech-study-js / handleEventOptions

Function handleEventOptions

tech-study.js:1461–1470  ·  view source on GitHub ↗

* @description 处理事件选项

(option)

Source from the content-addressed store, hash-verified

1459 * @description 处理事件选项
1460 */
1461function handleEventOptions(option) {
1462 if (option.length) {
1463 const options = {
1464 capture: option.includes('capture'),
1465 once: option.includes('once'),
1466 passive: option.includes('passive'),
1467 };
1468 return options;
1469 }
1470}
1471/**
1472 * @description 处理属性
1473 * @param ele

Callers 1

handleAttributeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected