标签:null branch function substr nes handle ddr point on()
//html获取url地址
// function GetQueryString(name)
// {
// var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
// var r = window.location.search.substr(1).match(reg);
// if(r!=null)return unescape(r[2]); return null;
// }
//中文乱码现象
var url = decodeURIComponent(window.location.search);
function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = url.substr(1).match(reg);
if (r != null) return unescape(r[2]); return null;
}
$(‘.IllegalTime‘).empty().text(getQueryString("time"))
$(‘.Illegalplace‘).empty().text(getQueryString("address"))
$(‘.IllegalContent‘).empty().text(getQueryString("content"))
$(‘.IllegalBranch‘).empty().text(getQueryString("fine"))
$(‘.IllegalMoner‘).empty().text(getQueryString("points"))
var oflag = getQueryString("flag");
$(‘.handleBtn‘).click(function(){
if( oflag==1 ){
window.webkit.messageHandlers.jsCallOC.postMessage("findagent");
} else {
window.android.findagent();
}
})
$(‘.helpBtn‘).click(function(){
if( oflag==1 ){
window.webkit.messageHandlers.jsCallOC.postMessage("findhelp");
} else {
window.android.findhelp();
}
})
标签:null branch function substr nes handle ddr point on()
原文地址:http://www.cnblogs.com/weiwentaweb/p/7242099.html