我一直在 IE8 中运行以下 jquery 代码(使用 jquery 1.4.2)。这适用于所有其他浏览器,如 Mozilla、IE9 等,但不适用于 IE8。
谁能告诉我如何解决这个问题或使用类似的代码来执行相同的“更改”功能?
$('.input-timesheet-type').live('change', function () {
totalCount($(this).attr('data-teamid'));
});
最佳答案
虽然IE8支持live()
,live()
has some problems使用 change()
事件:
Possible event values: click, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, keydown, keypress, keyup
Currently not supported: blur, focus, mouseenter, mouseleave, change, submit
关于javascript - live() 更改在 IE8 上的 jquery 1.4.2 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15559144/