后台代码:
public string title = "js调用后台属性值";
public void getContent()
{
return title;
}
前台代码:
var title = "<%=getContent()%>";
alert(title);
时间: 2024-10-11 22:05:58
后台代码:
public string title = "js调用后台属性值";
public void getContent()
{
return title;
}
前台代码:
var title = "<%=getContent()%>";
alert(title);