Parse JavaScript code in C#

前端 未结 4 1840
旧巷少年郎
旧巷少年郎 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:37

    You could use a javascript parser, but parsing javascript for just that one value is probably way overkill.

提交回复
热议问题