...
|
...
|
@@ -425,3 +425,16 @@ function getUrlParam(name) { |
|
|
if (r != null) return unescape(r[2]);
|
|
|
return null; //返回参数值
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 跳转url转义
|
|
|
* @param str
|
|
|
* @returns {void|string|XML}
|
|
|
*/
|
|
|
function escape2Html(str) {
|
|
|
var arrEntities = {'lt': '<', 'gt': '>', 'nbsp': ' ', 'amp': '&', 'quot': '"'};
|
|
|
return str.replace(/&(lt|gt|nbsp|amp|quot);/ig, function (all, t) {
|
|
|
return arrEntities[t];
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
|