• easyui form 提交问题,纠结了很久,有点诡异


    http://www.iteye.com/problems/131602

    form 提交,后台运行有时慢,页面就不等后台数据的响应,直接alert("服务器维护中,请稍后再试!"); 
    后来我发现,如果在action打断点,前台jsp直接会进入alert,根本就不会等待后台的响应。这是什么原因?   

    $('#DzMediumRegister').form('submit', { 
    url : 'registerAction!register.action', 
    onSubmit : function(param) { 
    param.regType = mediunRegType; 
    param.wtms = $('#e_safeQuestions').combobox('getText'); 
    if(mediunRegType =="12"){//邮箱注册 
    _email = $("#vv").val(); 

    if(mediunRegType =="11"){ 
    _mobile = $("#zjmobile").val(); 

    //return true; 
    return $(this).form('validate');//对数据进行格式化 
    }, 
    success : function(data) { 
    if(jQuery.isEmptyObject(data)){ 
    alert("服务器维护中,请稍后再试!"); 

    var obj = jQuery.parseJSON(data); 
    if (obj.Success) { 
    if(mediunRegType =="12"){//邮箱注册 
    location.href = "<%=basePath%>jquery-easyui-1.4/demo/register2.jsp?yhbm="+obj.yhbm+"&email="+obj.email; 
    }else if(mediunRegType =="11"){ 
    location.href = "<%=basePath%>jquery-easyui-1.4/demo/register2.jsp?yhbm="+obj.yhbm+"&mobile="+obj.mobile; 




    });


    问题补充:alert("服务器维护中,请稍后再试!") 的时候,后台正进入断点中,很明显未返回响应,但是easyui是怎么得到成功响应进入回调函数的

    问题补充:发现了问题,IE下正常,360浏览器下报 
    Error in response to storage.get: TypeError: Cannot read property 'shoptemplate' of undefined 
        at Object.tpl.loadPageTplData (chrome-extension://dobbgecnokkloebjbcnjpgcopegjabpa/js/box.js:1:8515) 
        at Object.tpl.getPageTplData (chrome-extension://dobbgecnokkloebjbcnjpgcopegjabpa/js/box.js:1:6017) 
        at chrome-extension://dobbgecnokkloebjbcnjpgcopegjabpa/js/box.js:1:11664 
        at Object.callback (chrome-extension://dobbgecnokkloebjbcnjpgcopegjabpa/js/box.js:1:1232) extensions::sendRequest:26 
    safeCallbackApply extensions::sendRequest:26 
    handleResponse
  • 相关阅读:
    behavior planning——15.cost function design weightTweaking
    behavior planning——14.implement a cost function in C++
    behavior planning——13. implement a cost function in C++
    behavior planning——12.example cost funtion -lane change penalty
    发布全局项目
    http
    网址大全
    JSON.parse()和JSON.stringify()
    Ajax+Node分页
    H5移动端的注意细节
  • 原文地址:https://www.cnblogs.com/zkwarrior/p/4834489.html
Copyright © 2020-2023  润新知