Home > Net >  C # direct reference js file, the data in the js
C # direct reference js file, the data in the js

Time:01-31

String path=AppDomain. CurrentDomain. BaseDirectory + "/content/js/branddata js";
String str2=File. ReadAllText (path);

Path: js's path

STR: js file data in a

CodePudding user response:

Is this a Json format of the data, deserialized into entity class not to go

CodePudding user response:

If it is behind the standard json. You can use the newtonsoft DLL

If you can use Microsoft operating js. Javascript. Enginer. DLL Microsoft. Javascript. Services. The DLL is that don't remember, you can baidu,

CodePudding user response:

If is the case, the var=XXX filtering is standard json, then no then, the above said

If something you're not the only example, please directly with v8 engine execution and interaction
  • Related