更新 'SrcJySet.js'

pull/1/head
src48597962 2 years ago
parent 1c59f43313
commit 6944aaa4a3
  1. 6
      SrcJySet.js

@ -2255,7 +2255,11 @@ function Resourceimport(input,importtype,boxdy){
var reg = /("([^\\\"]*(\\.)?)*")|('([^\\\']*(\\.)?)*')|(\/{2,}.*?(\r|\n|$))|(\/\*(\n|.)*?\*\/)/g;
html = html.replace(reg, function(word) {
return /^\/{2,}/.test(word) || /^\/\*/.test(word) ? "" : word;
}).replace(/^.*#.*$/gm,"").replace(/\,\,/g,',').replace(/[\r\n]|\s+/g,'').replace(/api\"\:csp/g,'api":"csp').replace(/,\"/g,',').replace(/\"\:/g,':').replace(/\{\"/g,'{');//.replace(/=\\n\"/g,'="')|[\t\r\n]
}).replace(/^.*#.*$/gm,"").replace(/\,\,/g,',').replace(/\s+/g,'');
html = html.replace(/<\/?.+?>/g,"");
html = html.replace(/[\r\n]/g, "");
html = html.replace(/api\"\:csp/g,'api":"csp').replace(/,\"/g,',').replace(/\"\:/g,':').replace(/\{\"/g,'{');//.replace(/=\\n\"/g,'="')|[\t\r\n]
log(html);
eval('var data = ' + html)
//var data = JSON.parse(html);

Loading…
Cancel
Save