This article is a mirror article of machine translation, please click here to jump to the original article.

View: 22100|Reply: 1

[Source] .net/c# parses and runs JavaScript code

[Copy link]
Posted on 12/27/2018 11:03:09 AM | | | |
We use C# to parse JS and run the renderings of the JS code, as shown below:



This article is implemented using the COM component "Microsoft Script Control", first of all, it refers to the com component "Microsoft Script Control", omitted.

代码.txt (601 Bytes, Number of downloads: 0, Selling price: 1 Grain MB)

Encapsulated Code:



Calling Code:

Of course, you can also use Jurassic to parse and execute, see the following:

HtmlAgilityPack takes the data in scrip{filter}t(js).
https://www.itsvse.com/thread-3524-1-1.html
(Source: Architect_Programmer)





Previous:Martial arts teaching Qigong points and other martial arts (last update)
Next:Installing vim on CentOS 7 (not installed by default)
Posted on 1/6/2019 11:35:06 PM |
I would like to ask you to run JavaScript code in C# using this method. Can you use crypto-js?
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com