获取请求 返回
{"mobile":"1","mobileMsg":"手机未注册 请前去注册在充值!!"使用 $("#xxx").ajaxForm时候({})能将“mobileMsg”在前台弹框提示 但是会出现CORS的跨域问题 换成$("#xxx).ajax的时候就将json显示在页面上 没有弹框提示 这是什么情况 有知道的大佬么?
前段代码:
().({
: : (formDatajqFormoptions) {
}
: (ret) {
console.(+ret)controller代码
(PayValidator.)
() IOException {
System..println()System..println(+token)String price=getPara()String type=getPara()String pay_id=getPara()String param=getPara()String mobile=getPara()String notify_url=String return_url=(price==){
price=}
Ret ret=.Exeic(mobile)renderJson(ret)String url=+++pay_id++price++type++token++param++notify_url++return_urlredirect(url)校验代码
(Controller c)
{
(PayService..NameMobileExists(c.getPara())) {
addError()}
项目:JFinal
否则你贴出来的代码丢失大量信息,你仔细看看你贴的什么