10 2014 档案

ajax 代码
摘要:function ajax(){ var aj=null; if(window.ActiveXObject){ aj = new ActiveXObject("Microsoft.XMLHTTP"); }else if(window.XMLHttpRequest){ aj = ne... 阅读全文

posted @ 2014-10-26 19:40 正在输入...... 阅读(153) 评论(0) 推荐(0)

nodejs表单验证
摘要://创建express连接var exp = require('xepress'), http = require('http');//初始化exprerss模块 var app = exp();//配置端口号app.set('post',8080);//设置静态路径app.use(exp.st... 阅读全文

posted @ 2014-10-22 23:07 正在输入...... 阅读(920) 评论(0) 推荐(0)

nodejs 与数据库的连接
摘要://创建连接(封装)var mysql = require("mysql")function name(){var con = mysql.createConnection({ host :"localhost", user :"****", password :"*****", datab... 阅读全文

posted @ 2014-10-21 22:48 正在输入...... 阅读(546) 评论(0) 推荐(0)