文章分类 -  javascript/js

摘要:通过websoket 捕抓每0.1秒的画面给客户端. 下载地址http://www.workerman.net/camera 录像页面 直播接收页面 阅读全文
posted @ 2017-09-21 02:38 wujunbin 阅读(1817) 评论(0) 推荐(0)
摘要:在线css压缩 http://tool.lu/css 亲测8k的代码压缩只有1.4k html,js压缩 http://tool.oschina.net/jscompress 图片压缩 http://www.yasuotu.com/ http://www.atool.org/pngcompressi 阅读全文
posted @ 2017-09-21 01:19 wujunbin 阅读(146) 评论(0) 推荐(0)
摘要:1 2 3 4 年会抽奖系统 5 6 122 123 124 125 126 127 128 中奖号码 129 130 131 133 134 136 138 139 一等奖(10名) 140 141 142 144 146 148 15... 阅读全文
posted @ 2017-09-20 11:54 wujunbin 阅读(630) 评论(0) 推荐(0)
摘要:1 3 4 5 js抽奖 6 9 10 11 12 13 12345 14 15 16 166 17 18 19 157 20 21 22 148 23 24 25 131211109 26 27 28 29 请输入1-16其中一位整数,代表要停止的位置 30 139 14... 阅读全文
posted @ 2017-09-20 11:32 wujunbin 阅读(2586) 评论(0) 推荐(0)
摘要:<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <style type="text/css"> li{list-style: none;} #sr_je { width 阅读全文
posted @ 2017-09-15 08:35 wujunbin 阅读(591) 评论(0) 推荐(0)
摘要:虽已数年,但未就学习专门写过文章,这回破处了。苍蝇不叮没有缝隙的鸡蛋,领导不做没有跟拍的表演,同样,想到写CSS学习的文章也是有原因的(虽然我的不少行为没有原因)。 情景再现(尊重隐私,下面故事中人名均为化名,有加工): 如月姑娘(本届D2上微博中奖上台最漂亮的那位)的内部分享会——关于CSS3 b 阅读全文
posted @ 2017-09-09 21:30 wujunbin 阅读(170) 评论(0) 推荐(0)
摘要:在谷歌浏览器里,使用Ueditor时有一个问题,就是在上传图片时,点击按钮弹出文件选择框时,大约需要8秒才能弹出 解决方法: 1、单张图片:修改ueditor.all.js(ueditor.all.min.js)第24429行左右,将accept的值从image/*改成 image/jpeg,ima 阅读全文
posted @ 2017-09-08 04:06 wujunbin 阅读(1584) 评论(0) 推荐(0)
摘要:百度编辑器UEditor 点击上传图片选择框会延迟几秒才会显示 反应很慢 百度编辑器UEditor 点击上传图片选择框会延迟几秒才会显示 反应很慢 1、ueditor/dialogs/image/images.js中的下面代码 accept: { title: 'Images', extension 阅读全文
posted @ 2017-09-08 03:42 wujunbin 阅读(319) 评论(0) 推荐(0)
摘要:<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>DIV CSS遮罩层</title> <script language="javascript" type="text/javascript"> function showdiv()  阅读全文
posted @ 2017-08-31 23:16 wujunbin 阅读(286) 评论(0) 推荐(0)
摘要:<script type="text/javascript" src="_ADMIN_/lib/jquery/1.9.1/jquery.min.js"></script><script type="text/javascript"> //委托事件,这个意思是这个对象下面的某个a后代点击时,执行事件 阅读全文
posted @ 2017-08-31 23:15 wujunbin 阅读(487) 评论(0) 推荐(0)
摘要:tag标签随机位置+js数组随机+js添加一段html代码段 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd 阅读全文
posted @ 2017-08-28 22:20 wujunbin 阅读(836) 评论(0) 推荐(0)
摘要:js中一切皆为对象 方法=函数 其实也是内建对象 函数都可以用,包括数组,函数 都可以获取 核心dom编程 -- dom d document文档 o 对象 1用户自定义对象, 2内建对象 如Array Math和Data 3宿主对象 浏览器提供的对象 m 模型 节点树 1,内嵌式可以放在任何位置( 阅读全文
posted @ 2017-08-28 21:25 wujunbin 阅读(459) 评论(0) 推荐(0)
摘要:前端js总结 //getElementById函数 function $(id){ return document.getElementById(id); } //随机函数不包max //Math.floor(Math.random()*(max-min+1)+min);包含max和min func 阅读全文
posted @ 2017-08-28 21:20 wujunbin 阅读(419) 评论(1) 推荐(0)