| aspx demo         object oScript = System.Runtime.InteropServices.Marshal.BindToMoniker("script:D:\\comMD5.wsc"); Type tScript = oScript.GetType(); //object[] param = new object[2]; //param[0] = " {mytimes:new Date(),type:'test'};"; //param[1] = "type";         object[] param = new object[2]; param[0] = "你好啊"; param[1] = "很好的"; object str = tScript.InvokeMember("WriteJsCode", System.Reflection.BindingFlags.Default | System.Reflection.BindingFlags.InvokeMethod, null, oScript, param); Response.Write(str); asp demo ' Create an instance of simple.wsc from the file system ' You could register the component rather than doing this set simple=getobject("script:D:\product.353.us\simple.wsc") ' set the message property 'simple.message = "Hello World" ' Call the display method 'simple.display | 
|  |