How to call JavaScript from C# - Cordova/PhoneGap

前端 未结 4 897
生来不讨喜
生来不讨喜 2021-01-18 05:10

I\'m using cordova/phonegap to make a windows phone app, i\'m trying to call a script from C# when an event fires.

Is there anyway to do this?

here\'s my cla

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

    Try this example :

    string str="";
    Page.ClientScript.RegisterStartupScript(this.GetType(), "Script", str, false);
    

提交回复
热议问题