如何为ionic webapp开发自定义插件
展开全部
myAPI.func1 = function(arg0, success, error) {
exec(success, error, "MyPlugin", "func1", [arg0]);
};
myAPI.func2 = function(arg0, arg1, success, error) {
exec(success, error, "MyPlugin", "func2", [arg0,arg1]);
};
myAPI.func3 = function(success, error) {
exec(success, error, "MyPlugin", "func3",[]);
};
exec(success, error, "MyPlugin", "func1", [arg0]);
};
myAPI.func2 = function(arg0, arg1, success, error) {
exec(success, error, "MyPlugin", "func2", [arg0,arg1]);
};
myAPI.func3 = function(success, error) {
exec(success, error, "MyPlugin", "func3",[]);
};
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询