列:
扫描二维码获得参数,参数加在网址里面,打开带参数的网址
写法参考:
jsBridge.scan({
needResult: true,
}, function (code) {
if (code) {
location.href = "http://www.applebyme.cn/ceshi&code=
" + encodeURIComponent(code);
}
});
写法参考:
jsBridge.scan({
needResult: true
}, function(code) {
if (code) {
location.href = code;
}
});
唤起相机扫一扫,打开二维码扫描结果 |