firfox 中onpropertychange的替換方案
- <script type="text/javascript">
- document.getElementById('foo').watch("value",
- function (id, oldval, newval) {
- console.log("foo." + id + " changed from " + oldval + " to " + newval);
- return newval;
- });
- </script>
歡迎關注本站公眾號,獲取更多信息