所有浏览器的Object.Watch()?
Object.Watch
Object.Observe
Object.watch()
回答后更新:
watcher.status
document.write()
watcher.watch()
watcher.status
document.write()
var options = {'status': 'no status'},watcher = createWatcher(options);watcher.watch("status", function(prop, oldValue, newValue) { document.write("old: " + oldValue + ", new: " + newValue + "<br>"); return newValue;});watcher.status = 'asdf';watcher.status = '1234';document.write(watcher.status + "<br>");
郎朗坤
墨色风雨
相关分类