在 ng-form 指令中有一个名为 noop() 的函数。这个功能有什么用呢?我如何猜测这个函数的用途?
最佳答案
您可以在 documentation 中找到它的用途.
A function that performs no operations. This function can be useful when writing code in the functional style.
关于javascript - AngularJS中noop函数的使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44089494/