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>

你可能感兴趣的:(firfox 中onpropertychange的替换方案)