在 Angularjs Controller 中我有以下功能:
function colorDropDownEditor(container, options) {
$('<input data-text-field="Myobject" data-value-field="Referente" data-bind="value:' + options.field + '"/>')
.appendTo(container)
...
...
现在我的问题是:AngularJS如何执行jquery方法?如何解释“$”符号?
谢谢
最佳答案
Angular 包括 jqLite ,它实现了所有 jQuery 功能的子集。
来自Angular FAQ :
Yes, Angular can use jQuery if it's present in your app when the application is being bootstrapped. If jQuery is not present in your script path, Angular falls back to its own implementation of the subset of jQuery that we call jQLite.
关于javascript - Angularjs 和 $ 选择器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24220428/