一个DBhelper类,用来操作数据库 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Configuration; using System.Data; using System.Data.SqlClient; namespace JsonTest.helper { public class DBhelper { p…
封装好的:ajax.js function ajax(url, fnSucc,fnFaild){ //1[创建] if(window.XMLHttpRequest){ var oAjax = new XMLHttpRequest(); }else{ var oAjax = new ActiveXObject("Microsoft.XMLHTTP"); }; //2: [连接]true:表示异步 oAjax.open('GET',url,true); //3:[发送] oAjax.sen…