时间:2021-07-01 10:21:17 帮助过:15人阅读
$.post('{:U("Safeinfo/txpassadd")}', $("#txadd").serialize(), function(data) {
alert("ok"); ...
tip("100", '交易密码不能与登录密码一样!');
function tip($code, $msg) {
$arr['code'] = iconv('GB2312', 'UTF-8', $code);
$arr['msg'] = iconv('GB2312', 'UTF-8', $msg);
//die(json_encode($arr));
die(var_json_encode($arr)); //cjq
}
function var_json_encode($var){
$_var = var_urlencode($var);
$_str = json_encode($_var);
return urldecode($_str);
}
function tip($code, $msg) {
$arr['code'] = iconv('GB2312', 'UTF-8', $code);
$arr['msg'] = iconv('GB2312', 'UTF-8', $msg);
die(json_encode($arr,JSON_UNESCAPED_UNICODE)); //cjq
}
function tip($code, $msg) {
$arr['code'] = iconv('GB2312', 'UTF-8', $code);
$arr['msg'] = iconv('GB2312', 'UTF-8', $msg);
die(json_encode($arr));
// die(var_json_encode($arr)); //cjq
}
function tip($code, $msg) {
$arr['code'] = iconv('GB2312', 'UTF-8', $code);
$arr['msg'] = iconv('GB2312', 'UTF-8', $msg);
// die(json_encode($arr));
die(var_json_encode($arr)); //cjq
}