摘要: 最近的项目中大量使用了ajax技术,但ajax应用中容易导致浏览器的前进后退按钮失效,不产生前进后退功能,这是个很头疼的问题,它严重的破坏了用户美好的体验,但通过改变location.hash值来解决Ajax过程中导致的浏览器前进后退按键失效的问题Ybole.hash={url:'',setHash... 阅读全文
posted @ 2014-10-27 14:41 dainash 阅读(1057) 评论(0) 推荐(0)
摘要: nodeJS连接MySQL数据库,首先创建一个数据库及表。如下:create databases node;create table test( id int AUTO_INCREMENT PRIMARY KEY , name char(50) )ENGINE=InnoDB DEFAULT CHAR... 阅读全文
posted @ 2014-09-02 20:15 dainash 阅读(220) 评论(0) 推荐(0)
摘要: 安装Homebrew只需要一条命令,so easyruby -e "$(curl -fsSLhttps://raw.github.com/Homebrew/homebrew/go/install)" 阅读全文
posted @ 2014-09-02 09:57 dainash 阅读(95) 评论(0) 推荐(0)
摘要: Express框架安装 1.在命令行中使用全局模式安装 $ sudo npm install express@3.0.6 -g 2.建立工程 $ express -t ejs 文件名 3.建立后提示进入其中并运行 $cd 文件名 && npm install 4.启动... 阅读全文
posted @ 2014-09-01 14:44 dainash 阅读(116) 评论(0) 推荐(0)