https://github.com/lunaticss/WebViewJavascriptBridge.git 文件需要在页面加载之前就引入,ios的包需要在WebViewJavascriptBridge之前就引入,否则内部拿不到挂载在window上的对象
titleBartitleBar({text:'',style:{},show:true}) text:文字,style样式(需要和移动端说明) show是否显示标题栏
titleButton({text:'',style:{}}) text:文字,stle样式
open({url:'',close:false}) url:页面路径或者标识,close:是否关闭当前页
close(0, {refresh:false}) refresh:true刷新上一页 默认refresh为false
close(n) n>0
resume()pause()
pulltorefresh({open:false}) open:是否开启下拉刷新
call({app:'wechat'}) app:需要唤起的app标识
share({target:'wechat'}) target:分享渠道
login()
pay()
position()
camera()
upload()
logout() 退出跳转到登陆页
scan()
其中具体哪些方法不支持需要询问移动端小朋友,罗列的是网上找到的一些方法