您正在使用的浏览器版本过低,将不能正常浏览请升级最新浏览器或更换浏览器访问
';
formContainer.append(str)
});
}
};
// 获取xss正则;
getCheckIsXSS()
function getCheckIsXSS() {
$.ajax({
url: '/aop_component//openapp/system/getXssConfig',
crossDomain: false,
headers:msgSubmitData.queryParams,
type: "post",
dataType: "json",
contentType: "application/json",
success: function (res) {
if (res.code == "0000") {
msgSubmitData.xssRule=res.data
}
},
error: function (response) {
layer.msg(response.msg);
}
})
};
/*xss校验函数,返回值:true 表示存在xss漏洞,false:不存在*/
function checkIsXSS(v) {
return (new RegExp(msgSubmitData.xssRule)).test(v.replace(/[\r\n]/g,""));
};
//回复
function replyclickfun(){
msgSubmitData.replyWindow=!msgSubmitData.replyWindow;
renderTemplate(msgSubmitData);
replyEditorRender();
};
// 查看我的留言
$('#mine-message').on('click',function(){
// if(token === 'preview') {
// layer.msg('查看我的留言需要登录,请您先登录',{time:1000});
// return
// } else {
if("/jjjcw/xfjb_details.htm".indexOf("?") != -1){
window.locations.href="/jjjcw/xfjb_details.htm&typeId=" + typeId
}else{
window.locations.href="/jjjcw/xfjb_details.htm?typeId=" + typeId
}
// }
});
window.renderTemplate=renderTemplate;
window.codeRload=codeRload;
window.replyclickfun=replyclickfun;
})
}