1 function remotecontrol() {
 2     var progressbar = $("#progressbar");
 3     $.ajax({
 4         url: myurl,
 5         type: mytype,
 6         data: mydata,
 7         contentType: commonType,
 8         dataType: jsonType,
 9         success: function (data) {
10             var ret = data.d.replace(/\r\n/ig, "<br \/>");
11             var obj = eval('(' + ret + ')'); //转换后的JSON对象
12             //if (obj.success) {
13             progressbar.progressbar("value", 100);
14             $('#dlgprogress').dialog('close');
15             inittabled(obj);
16             $('#dlg').dialog('open').dialog('setTitle', '操作结果');
17         },
18         error: function () {
19             $('#dlgprogress').dialog('close');
20         }
21     });
22 
23 }

 

相关文章:

  • 2021-11-11
  • 2022-02-09
  • 2022-02-16
  • 2022-12-23
  • 2022-01-09
  • 2022-12-23
  • 2021-11-21
  • 2021-06-04
猜你喜欢
  • 2021-08-27
  • 2022-12-23
  • 2021-05-05
  • 2018-03-03
  • 2022-12-23
  • 2021-11-21
相关资源
相似解决方案