|
|
@ -5,7 +5,6 @@ $(function (){
|
|
|
|
window.RPayPlus = {
|
|
|
|
window.RPayPlus = {
|
|
|
|
// 向Native端发送消息,用于实现:JS->Native
|
|
|
|
// 向Native端发送消息,用于实现:JS->Native
|
|
|
|
send: function(methodName, param, callback) {
|
|
|
|
send: function(methodName, param, callback) {
|
|
|
|
alert(2);
|
|
|
|
|
|
|
|
var thisId = 0;
|
|
|
|
var thisId = 0;
|
|
|
|
if(callback){
|
|
|
|
if(callback){
|
|
|
|
thisId = new Date().getTime();; // 获取唯一id
|
|
|
|
thisId = new Date().getTime();; // 获取唯一id
|
|
|
@ -17,7 +16,6 @@ $(function (){
|
|
|
|
callbackId: thisId // 传到 Native 端
|
|
|
|
callbackId: thisId // 传到 Native 端
|
|
|
|
};
|
|
|
|
};
|
|
|
|
var msg = JSON.stringify(json);
|
|
|
|
var msg = JSON.stringify(json);
|
|
|
|
alert(msg);
|
|
|
|
|
|
|
|
var u = navigator.userAgent;
|
|
|
|
var u = navigator.userAgent;
|
|
|
|
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
|
|
|
|
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
|
|
|
|
if(isiOS){
|
|
|
|
if(isiOS){
|
|
|
|