Parse JavaScript code in C#

前端 未结 4 1841
旧巷少年郎
旧巷少年郎 2021-01-18 02:00

I have the following JavaScript code as a string literal:

var $Page = new function()
{
    var _url= \'http://www.some.url.com\';

    this.Download = functi         


        
4条回答
  •  一向
    一向 (楼主)
    2021-01-18 02:22

    You could execute the javascript function using the DLR and/or MyJScript.

提交回复
热议问题