如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
AJAX技术详解作用:无刷新页面(局部刷新)优点:用户体验好、速度快缺点:搜索引擎不友好ajax实现get方式varhttp_request;functionsendRequest(){if(window.ActiveXObject)http_request=newActiveXObject("Microsoft.XMLHTTP");elsehttp_request=newXMLHttpRequest();http_request.onreadystatechange=process;http_request.open("get","url?名=值&名=值...",boolean);http_request.send(null);}functionprocess(){if(http_request.readyState==4){varresult=http_request.responseText;}}post方式varhttp_request;functionsendRequest(){if(window.ActiveXObject)http_request=newActiveXObject("Microsoft.XMLHTTP");elsehttp_request=newXMLHttpRequest();http_request.onreadystatechange=process;http_request.open("post","url",boolean);http_request.setRequestHeader("content-type","application/x-www-form-urlencoded");http_request.send("名=值&名=值&名=值...");}functionprocess(){if(http_request.readyState==4){varresult=http_request.responseText;}}php出现乱码的原因:编码不统一出现编码的地方:1、文件的存储格式2、<meta>3、header()4、mysql本身的编码5、mysql_query("setnamesutf8");6、iconviconv转码stringiconv("当前的编码","转换后的编码",string);xxxx.js文件,页面引用<scriptlanguage="javascript"src="目录/xxxx.js"></script>javascript知识点:1、基础语法(注释、变量、判断、循环、数组、json、函数)2、常见对象(document、window)3、事件4、表单验证5、正则表达式6、操纵标签的属性7、操纵标签的样式8、ajaxJQuery:xxxx.js文件(javascript框架)1、选择器2、操纵标签的属性3、操纵样式4、特效5、ajax选择器$("#id");//通过标签的id获得一个标签对象$("标签名称");//通过标签名获得一个或多个标签对象$(".class名");//通过class名,获得一个或多个标签对象$("*");//获得当前页面所有的标签对象$("#id,#id,#id...");//通过标签的id获得多个标签对象$("标签,标签,标签...");//通过标签的名称,获得多个标签对象操纵标签的属性val()操纵表单元素的value值jquery对象.val("内容");var变量=jquery对象.val();html()操纵标签的innerHTML属性jquery对象.html("内容");var变量=jquery对象.html();text()操纵标签的innerText属性jquery对象.text("内容");var变量=jquery对象.text();attr()操纵标签的属性(注意:属性名必须小驼峰)jquery对象.attr("属性名","属性值");jquery对象.attr(json对象);var变量=jquery对象.attr("属性名");removeAttr()移除某一标签上的某个属性jquery对象.removeAttr("属性名");addClass()添加一个引用的样式jquery对象.addClass("样式名");removeClass()移除一个引用的样式jquery对象.removeClass("样式名");toggleClass()切换一个引用