我给按钮做了一个点击事件,事件里写了ajax请求后台接口: 已知接口是肯定好用的,调用已经成功且数据库数据也更新了,但是回调一直进error: function(XMLHttpRequest, textStatus, errorThrown),求大老看看哪里不对。 //获取编辑的内容 var O = this.options.form.getWidgetByName("textAreData").getValue().replaceAll(" ", ""); if (null == O || O.replace(/\s+|[\r\n]/g, "").length == 0) { FR.Msg.alert('提示', '短信内容不能为空!') //水平和垂直居中 $('#popup_message').css({ 'text-align': 'center' }); $('#popup_content').css('top', '50%'); } else { $.ajax({ url: "https://t.jundunxueyuan.com/***********/addPromoteexamRecord.do", type: 'get', contentType: "application/json", data: { schoolNumber: school_number, smsContent: O }, dataType: "jsonp", success: function(data, textStatus) { alert("促考成功"); }, //error: function(XMLHttpRequest, textStatus, errorThrown) { //alert("促考失败"); //}, complete: function(XMLHttpRequest, textStatus) { console.log("已执行促考"); } }); //关闭对话框 window.parent.FR.closeDialog(); } 补充一下,是不是传参的形式不对,一般帆软的传参形式是什么?传参形式可以改变吗? |