- <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>
本文共 258 字,大约阅读时间需要 1 分钟。
转载于:https://my.oschina.net/u/267384/blog/175090