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.
我试过这个,但它从来没有奏效。有什么特别的原因,或者这个工作的例子吗?我在想:ng-click="myFunction('test')"
ng-click="myFunction('test')"
当然,这行得通。
<a ng-click="myName('jz')">Click me</a>
这是一个简单的例子:
http://jsfiddle.net/djYbC/1/