转自:http://www.cnblogs.com/digdeep/p/5574366.html 1.前台页面 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<script type="text/javascript"> function Getweb() { var name = $("#CityName").val(); var end = $("#endName").val(); $.post("/Admins/GetWeathers", { data: name, end: end }, function (objd) { // objd 回调函数返回的js