level 1
恐龙兵临城下
楼主
<script>
angular.module("modelApp",["ionic"])
.controller("modelController", function ($scope,$http) {
这里面怎么调用到下面函数传入的str呢??
$scope.doRefresh = function() {
}
});
function doSome(str){
navigator.notification.alert("phoneGap中js的弹出框" ,null, str+"", "sssss");
这里面怎么调用controller中的写的函数doRefresh()呢?
}
</script>
我在android中调用doSome这个方法,定义在controller里面就没有效果了。
btn.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
Toast.makeText(getApplicationContext(), "click", 0).show();
MainActivity0.this.sendJavascript("doSome(12);");
}
});
2015年12月09日 03点12分
1
angular.module("modelApp",["ionic"])
.controller("modelController", function ($scope,$http) {
这里面怎么调用到下面函数传入的str呢??
$scope.doRefresh = function() {
}
});
function doSome(str){
navigator.notification.alert("phoneGap中js的弹出框" ,null, str+"", "sssss");
这里面怎么调用controller中的写的函数doRefresh()呢?
}
</script>
我在android中调用doSome这个方法,定义在controller里面就没有效果了。
btn.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
Toast.makeText(getApplicationContext(), "click", 0).show();
MainActivity0.this.sendJavascript("doSome(12);");
}
});