Unable to add event
风
2021-01-26 17:11:25
0
2
924

function addEvent(obj, type, fn) {    alert('a');    if (typeof obj.addEventListener != 'undefined') {        alert('b');    obj.addEventListener(type, fn, false);    } else if (typeof obj.attachEvent != 'undefined') {    obj.attachEvent('on'   type, fn);    alert('c');    } }

无法使用

风

reply all(1)
灭绝师太

What error is reported? Ask a question and post the error~

  • reply I just can't add the window event, no error is reported, it just doesn't work.
    author 2021-01-29 13:42:32
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template