zoukankan      html  css  js  c++  java
  • 后台字符串转化成json

     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(/
    /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 }
  • 相关阅读:
    maven完成构建后,eclipse导入运行maven web
    maven构建java项目的过程【完全】
    maven配置【转载】
    iOS - 移动设备防丢失App
    iOS
    iOS
    iOS
    iOS
    iOS
    iOS
  • 原文地址:https://www.cnblogs.com/zhangwei595806165/p/3360596.html
Copyright © 2011-2022 走看看