【发布时间】:2017-03-14 20:05:03
【问题描述】:
我在 app.js 文件的控制器中有一个 submitDetails 函数,我想从 javascript 函数中调用它。但它的投掷错误 错误:提交详细信息未定义
clickApply: function(e) {
console.log("hi&hello");
angular.element('#span').scope().submitDetails();
this.hide();
this.element.trigger('apply.daterangepicker', this);
}
$rootScope.submitDetails=function()
【问题讨论】:
-
您能否详细说明请添加工作格式的 html 和 js 代码
标签: javascript jquery angularjs html css