xuzhiheng %!s(int64=4) %!d(string=hai) anos
pai
achega
ac0a1329c6
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      static/templates/projectListDetail.html

+ 4 - 2
static/templates/projectListDetail.html

@@ -96,8 +96,10 @@
                         str += '<td style="word-break:break-all">' + item.jyUrl + '</td>';
                         str += '</tr>';
                     }
-                    str = str.replaceAll("undefined", "")
-                    str = str.replaceAll("null", "")
+                    // str = str.replaceAll("undefined", "")
+                    // str = str.replaceAll("null", "")
+                    str.replace(new RegExp("undefined",'g'),"b");
+                    str.replace(new RegExp("null",'g'),"b");
                     $(".box").html(str);
                 } else {
                     $("#resultContent").text(JSON.stringify(r));