关于vue.js:基于Vue3最新标准实现后台前端综合解决方案mkw

8次阅读

共计 958 个字符,预计需要花费 3 分钟才能阅读完成。

download: 基于 Vue3 最新规范,实现后盾前端综合解决方案

import org.json.JSONArray;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.ActivityNotFoundException;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import com.phonegap.api.PhonegapActivity;
import com.phonegap.api.Plugin;
import com.phonegap.api.PluginResult;
public class PluginTest extends Plugin {

在 HTML 文件中调用方法
在 html 文件中引入 phonegap 和插件的 js 文件,调用方法

复制代码

<html>

<head>
<meta charset="utf-8">
<title>JAVA 传参 </title>
<script src="phonegap.js"></script> phonegap 包 -->
<script src="js/jquery.js"></script>
<script src="simplePlugin.js"></script> 自定义的插件文件 -->
<script>    
$(document).ready(function(e) {$("#btn_test").click(function(){
        window.plugins.simplePlugin.hello(function(result) {alert("返回的第一个参数:"+result.str1+"返回的第二个参数"+result.str2);
            }, 
            function(error) { },
            "第一个参数",
            "第二个参数"
        );    
    });
});
</script>
</head>

<body>
<button type=”button” id=”btn_test”>Click Me!</button>
</body>
</html>
复制代码

正文完
 0