Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
任何人都会看到优化掉不必要的 ajax 请求的潜在问题,如下所示:
$('.editable').editable(function(value, settings) { // check if changed at all if(this.revert == value) { this.reset() return } ... fire ajax request }
对我来说看上去很好。