`
woai671
  • 浏览: 29672 次
社区版块
存档分类
最新评论

C# 传值给js

    博客分类:
  • JS
  • C#
c# 
阅读更多
传变量:
public static string getUrl = "hello world!";

var srcUrl = <%=getUrl()%>;


传方法值:
public static string getUrl()
{
        return  "hello world!";
}

var srcUrl = <%=getUrl()%>;
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics