会员
众包
新闻
博问
闪存
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
sally2015
博客园
|
首页
|
新随笔
|
新文章
|
联系
|
订阅
|
管理
上一页
1
2
3
4
5
下一页
2016年5月3日
移动端微信调试
摘要: https://mp.weixin.qq.com/advanced/wiki?t=t=resource/res_main&id=mp1455784140
阅读全文
posted @ 2016-05-03 10:50 sally2015
阅读(131)
评论(0)
推荐(0)
编辑
2016年4月19日
快速排序
摘要: quickSort: function(array) { //var array = [8,4,6,2,7,9,3,5,74,5]; //var array = [0,1,2,44,4,324,5,65,6,6,34,4,5,6,2,43,5,6,62,43,5,1,4,51,56,76,7,7,2,1,45,4,6,7]; var i = 0; var j = ...
阅读全文
posted @ 2016-04-19 13:18 sally2015
阅读(149)
评论(0)
推荐(0)
编辑
2016年4月18日
layer
摘要: (function(w){ function Layer(){ this.init(); } Layer.prototype.init=function(){ if(document.getElementById('layer_oby')){//如果已经存在的情况 ...
阅读全文
posted @ 2016-04-18 23:32 sally2015
阅读(302)
评论(0)
推荐(0)
编辑
2016年4月17日
《原创》网络版五子棋node.js+websocket
摘要: index.html Socket.IO chat index.jsvar app=require('express')(); var http=require('http').Server(app); var io=require('socket.io')(http); app....
阅读全文
posted @ 2016-04-17 09:24 sally2015
阅读(552)
评论(0)
推荐(0)
编辑
2016年4月14日
原生验证插件
摘要: "use strict"; (function(win){ function ShawnwayValidation(formId,msg){ this.oForm=document.getElementById(formId);//获取表单元素 this.msg=msg; this.rules...
阅读全文
posted @ 2016-04-14 23:26 sally2015
阅读(209)
评论(0)
推荐(0)
编辑
2016年4月13日
你不知道的jQuery
摘要: jquery 获取元素的宽度 1.width:$('#id').width() 2.width+padding $('#id').innerWidth() 3.width+padding+border $('#id').outerWidth() 4.最神奇的一个width+padding+borde
阅读全文
posted @ 2016-04-13 21:12 sally2015
阅读(193)
评论(0)
推荐(0)
编辑
2016年4月10日
《原创》socket.io / getStarted /chat 中文翻译
摘要: 官网地址:http://socket.io/get-started/chat/ 开始:聊天应用程序 在这份指引中我们将创建一个聊天基本程序。它几乎不需要任何node.js获取Socket.io的知识。 所以对任何水平的使用者都是理想的使用方案。 介绍: 一直以来用流行的网络程序框架如LAMP来写一个
阅读全文
posted @ 2016-04-10 14:58 sally2015
阅读(637)
评论(0)
推荐(0)
编辑
2016年4月8日
动态元素的事件必须在元素存在后添加的事件才是有效的
摘要: 今天犯了个小错误,动态生成的日历列表,一开始给select元素加上change事件,没反应,想起来这跟以前为啥要使用事件委拖有类似的道理,获取元素是可以自动更新的,但是事件是不能的。
阅读全文
posted @ 2016-04-08 14:20 sally2015
阅读(125)
评论(0)
推荐(0)
编辑
2016年4月1日
boostrap 在火狐浏览器下奇怪的问题
摘要: link 引用时加了type='text/css'火狐就不能识别,去掉就可以了 /* 后来发现是我逗逼了,写成了这个type='test/css' ,看出来错在哪了吗? */
阅读全文
posted @ 2016-04-01 15:35 sally2015
阅读(162)
评论(0)
推荐(0)
编辑
2016年3月31日
单行文本溢出和多行文本溢出
摘要: 单行文本溢出overflow: hidden;white-space: nowrap;text-overflow: ellipsis;多行文本溢出display: -webkit-box !important;overflow: hidden;text-overflow: ellipsis;word
阅读全文
posted @ 2016-03-31 21:40 sally2015
阅读(167)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
下一页
公告