摘要: //返回顶部 function backTop(btnId) { var btn = document.getElementById(btnId); var d = document.documentElement; var b ... 阅读全文
posted @ 2015-09-07 15:13 背包旅行的蚂蚁 阅读(113) 评论(0) 推荐(0) 编辑
摘要: weinre这种方法。1.首先你要安装nodejs,要装一个低版本的,最新版本的装weinre会装不上。这里给个下载地址 https://nodejs.org/dist/v0.10.20/node-v0.10.20-x86.msi2.然后npm命令 npm install -g weinre3.运... 阅读全文
posted @ 2015-08-30 15:50 背包旅行的蚂蚁 阅读(820) 评论(0) 推荐(0) 编辑
摘要: 1.首先使用 npm 安装 supervisor: npm install -g supervisor2.使用 supervisor 命令启动 app.js: supervisor app.jssupervisor 这个小工具可以解决开发中的调试问题。 阅读全文
posted @ 2015-05-31 08:31 背包旅行的蚂蚁 阅读(341) 评论(0) 推荐(0) 编辑
摘要: //A对象function A(){ this.abc = 12;}A.prototype.show = function(){ alert(this.abc);}//B对象继承Afunction B(){ //this -> new B() 继承父级属性 A.call(this);... 阅读全文
posted @ 2015-05-13 17:05 背包旅行的蚂蚁 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 1.php链接数据库mysql_connect('localhost','root','13456');2.选择数据库mysql_select_db('库名');3.执行sql语句,插入一条数据mysql_query('insert into 表名() valuer( )');4.循环一张表中的数据... 阅读全文
posted @ 2015-05-06 11:04 背包旅行的蚂蚁 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 无标题文档 会员名: 5-25个字符,一个汉字为两个字符,推荐使用中文会员名 ... 阅读全文
posted @ 2015-04-17 15:28 背包旅行的蚂蚁 阅读(114) 评论(0) 推荐(0) 编辑
摘要: ... 阅读全文
posted @ 2015-04-17 10:22 背包旅行的蚂蚁 阅读(114) 评论(0) 推荐(0) 编辑
摘要: var IeAuto = navigator.userAgent.indexOf('MSIE') > -1; //判断是不是Ie浏览器 并赋值给变量 window.onload=function(){ function show(obj,id,html,width,height){ ... 阅读全文
posted @ 2015-04-16 11:56 背包旅行的蚂蚁 阅读(569) 评论(0) 推荐(1) 编辑
摘要: function $(id){ return document.getElementById(id); } window.onload = function(){ $('aaa').onmousedown=function(event){ ... 阅读全文
posted @ 2015-04-14 16:23 背包旅行的蚂蚁 阅读(98) 评论(0) 推荐(0) 编辑
摘要: function getByClass(clName,parent){ var oParent = parent?getElementById(parent):document, //三元运算 判断传进来的参数为真是parent,为假是document; ... 阅读全文
posted @ 2015-04-14 11:35 背包旅行的蚂蚁 阅读(232) 评论(0) 推荐(0) 编辑