代碼如下:
//後台cs代碼
using System;
using System
using System
using System
using System
using System
public partial class Login_jg : System
{
protected void Page_Load(object sender
{
}
public string get()
{
string name=this
string json = "{Name:
return json;
}
}
前台代碼
var dpinfo = "<%=get() %>";
var dpjson = eval("(" + dpinfo + ")");
alert(dpjson
From:http://tw.wingwit.com/Article/program/net/201311/14464.html