用ajax获取后台数据,返回json数据,怎么在前台使用呢?
后台
if (dataType == "SearchCustomer")
{
int ID;
if (Int32.TryParse(CustomerID, out ID))
{
string s = GridComputer.GridCustomer.getCustomer(1, 1, ID);
if (s =
百度了一下,找了点别人的方法改进了一下。 获取天气网址:http://www.weather.com.cn/html/weather/101210701.shtml这里是温州的,当然其他城市自己搜索一下,换一下ID。 由于是写入cookies记录当天天气,所有需要在站点下浏览。 js代码: 代码如下: var Url=escape(“http://m.weather.com.cn/data/101210701.html”); var COOKIE_info = “COOKIE_info”; v