import React, { useCallback, useEffect } from 'react'; import { teamixTest } from '@teamix/testing-capability'; const InnerTest = () => { useEffect(() => { const $e = document.querySelector('#e'); $e.addEventListener('click', () => { console.log('click :>> ', $e); }); }, []); useEffect(() => { setTimeout(async () => { const result = await teamixTest({ element: '#test', testItem: ['INVALIDSTYLE'], infoLimit: 10, // 为减少数据库压力,巡检任务默认为2,如需更多信息可通过Chrome插件自行检测 }); console.log('INVALIDSTYLE 测试结果 => ', result); }, 1000); }, []); const event = useCallback((e) => { console.log('onclick :>> ', e.target.onclick); console.log('onmouseenter :>> ', e.target.onmouseenter); }, []); return (

a标签有href

a标签无href

有onClick事件

无onClick事件

有getEventListener

无getEventListener

非手型且无事件

有onMouseEnter事件,未判断Mouse事件,归类为无onClick

我没有事件,但是我继承了父元素的pointer

); }; export default InnerTest;