会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
背包旅行的蚂蚁
博客园
首页
新随笔
联系
管理
订阅
2015年9月7日
实用的js函数
摘要: //返回顶部 function backTop(btnId) { var btn = document.getElementById(btnId); var d = document.documentElement; var b ...
阅读全文
posted @ 2015-09-07 15:13 背包旅行的蚂蚁
阅读(115)
评论(0)
推荐(0)
2015年8月30日
移动端调试html页面的方法
摘要: 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 背包旅行的蚂蚁
阅读(849)
评论(0)
推荐(0)
2015年5月31日
node.js小技巧——使用 supervisor
摘要: 1.首先使用 npm 安装 supervisor: npm install -g supervisor2.使用 supervisor 命令启动 app.js: supervisor app.jssupervisor 这个小工具可以解决开发中的调试问题。
阅读全文
posted @ 2015-05-31 08:31 背包旅行的蚂蚁
阅读(346)
评论(0)
推荐(0)
2015年5月13日
js的继承
摘要: //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 背包旅行的蚂蚁
阅读(122)
评论(0)
推荐(0)
2015年5月6日
php对mysql的相关操作
摘要: 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 背包旅行的蚂蚁
阅读(126)
评论(0)
推荐(0)
2015年4月17日
表单验证
摘要: 无标题文档 会员名: 5-25个字符,一个汉字为两个字符,推荐使用中文会员名 ...
阅读全文
posted @ 2015-04-17 15:28 背包旅行的蚂蚁
阅读(114)
评论(0)
推荐(0)
瀑布流
摘要: ...
阅读全文
posted @ 2015-04-17 10:22 背包旅行的蚂蚁
阅读(117)
评论(0)
推荐(0)
2015年4月16日
悬浮提示框效果
摘要: var IeAuto = navigator.userAgent.indexOf('MSIE') > -1; //判断是不是Ie浏览器 并赋值给变量 window.onload=function(){ function show(obj,id,html,width,height){ ...
阅读全文
posted @ 2015-04-16 11:56 背包旅行的蚂蚁
阅读(574)
评论(0)
推荐(1)
2015年4月14日
拖拽
摘要: function $(id){ return document.getElementById(id); } window.onload = function(){ $('aaa').onmousedown=function(event){ ...
阅读全文
posted @ 2015-04-14 16:23 背包旅行的蚂蚁
阅读(99)
评论(0)
推荐(0)
封装getElementsByClassName()这个方法
摘要: function getByClass(clName,parent){ var oParent = parent?getElementById(parent):document, //三元运算 判断传进来的参数为真是parent,为假是document; ...
阅读全文
posted @ 2015-04-14 11:35 背包旅行的蚂蚁
阅读(236)
评论(0)
推荐(0)
下一页
公告