属性改变不工作在IE11
propertychange not working in IE11
我使用propertychange
来捕获输入值。它不能在ie11上工作。有谁能告诉我正确使用它的方法吗?
下面是我的代码和html:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>PropertyChange</title>
<script src="jquery-1.11.1.min.js"></script>
<script src="propChange.js"></script>
</head>
<body>
<input type="text">
</body>
</html>
脚本:
jQuery(document).ready(function($) {
$('input').on('propertychange', function(){
console.log(this.value);
});
});
在控制台,我得到这个:
DOM7011: The code on this page disabled back and forward caching. For more information, see: http://go.microsoft.com/fwlink/?LinkID=291337
和
HTML1300: Navigation occurred.
使用DOMSubTreeModified使其在IE11中工作(IE11操纵DOM):
$('input').on('DOMSubTreeModified propertychange', function(){
console.log(this.value);
});
相关文章:
- IE11:indexOf()不在一个页面上工作,但在其他页面上工作
- style.display无法在Chrome、Safari-Firefox、IE11中正常工作
- ajax调用在IE11和chrome中无法正常工作
- jqTree 在 IE11 中不执行保存状态工作正常 FF12.
- onunload和onbeforenlad事件在IE11和IIS中未按预期工作
- 媒体打印css无法在IE11打印预览中工作
- onblur功能在IE11中停止工作
- IE11上的全屏html5播放器不工作
- 水平图像滑块无法在chrome和IE11中工作
- window.location.hash在IE11中不工作
- 在ie11中,getAttribute()不能与Sizzle一起工作
- JavaScript RegExp不工作在IE11和工作在Chrome
- window.history.back(),返回false;“不能在IE11中工作
- 定时器功能不工作在ie11使用jscript apex页面
- CSS动画不能在IE11上工作
- 设置主页Js在IE11中不工作
- LESS不能在IE11中工作-为什么
- 为什么这个箭头功能不能在ie11中工作?
- openweathermap api在IE11中不工作
- button.click()在IE11下不能工作