firfox 中onpropertychange的替換方案

  1. <script type="text/javascript">
  2. document.getElementById('foo').watch("value",
  3. function (id, oldval, newval) {
  4. console.log("foo." + id + " changed from " + oldval + " to " + newval);
  5. return newval;
  6. });
  7. </script>
相關文章
相關標籤/搜索