随笔分类 -  javascript&jquery

javascript在工作中应用记录
摘要:for array data sources: label for value in array select as label for value in array label group by group for value in array select as label group by g 阅读全文
posted @ 2017-05-19 11:14 access笨小孩 阅读(181) 评论(0) 推荐(0)
摘要:grunt.initConfig({ uglify: { options: { compress: { drop_console: true } }, files: [] } }) 阅读全文
posted @ 2017-04-21 16:49 access笨小孩 阅读(767) 评论(0) 推荐(0)
摘要:window.open(url, name, features, replace) Arguments - 参数 url 可选字符串参数,指向要在新窗口中显示的文档的URL。如果省略该参数,或者参数为空字符串,新窗口不会显示文档。 name 可选字符串参数,该参数可以设置新窗口的名称。 相同name 阅读全文
posted @ 2017-03-30 14:29 access笨小孩 阅读(208) 评论(0) 推荐(0)
摘要:http://www.tuicool.com/articles/jam2Anv 阅读全文
posted @ 2016-09-01 11:57 access笨小孩 阅读(188) 评论(0) 推荐(0)
摘要:<html> <meta http-equiv="X-UA-Compatible" content="chrome=1"> <head> <script> window.onload = function() { draw(); var saveButton = document.getElemen 阅读全文
posted @ 2016-07-27 14:36 access笨小孩 阅读(1840) 评论(0) 推荐(0)
摘要:一.click与300ms延迟 移动浏览器提供一个特殊的功能:双击(double tap)放大 300ms的延迟就来自这里,用户碰触页面之后,需要等待一段时间来判断是不是双击(double tap)动作,而不是立即响应单击(click),等待的这段时间大约是300ms。之前有过简单介绍: 黯羽轻扬: 阅读全文
posted @ 2016-07-22 09:12 access笨小孩 阅读(227) 评论(0) 推荐(0)
摘要:用来把文件读入内存,并且读取文件中的数据。FileReader接口提供了一个异步API,使用该API可以在浏览器主线程中异步访问文件系统,读取文件中的数据。到目前文职,只有FF3.6+和Chrome6.0+实现了FileReader接口。 1、FileReader接口的方法 FileReader接口 阅读全文
posted @ 2016-07-15 09:16 access笨小孩 阅读(18369) 评论(0) 推荐(0)
摘要:本文讲解seajs的使用 阅读全文
posted @ 2016-06-30 17:01 access笨小孩 阅读(197) 评论(0) 推荐(0)
摘要:1.基本选择器 基本选择器是JQuery中最常用的选择器,也是最简单的选择器,它通过元素id、class 和标签名来查找DOM元素。这个非常重要,下面的内容都是以此为基础,逐级提高的。 1).“$(“#id”)”,获取id指定的元素,id是全局唯一的,所以它只有一个成员。 2).“$(“.class 阅读全文
posted @ 2016-03-11 11:51 access笨小孩 阅读(2638) 评论(0) 推荐(0)
摘要:window.Xfun = { "getById" : function getById( id ) { return document.getElementById(id); }, "getUrlParam":function (name) { var reg = new RegExp("(^|& 阅读全文
posted @ 2016-03-10 08:53 access笨小孩 阅读(431) 评论(0) 推荐(0)
摘要:JS KeyCode数字对应键盘以及应用大全 时间:2014-07-11 10:37 点击:851次 keycode 8 = BackSpace BackSpacekeycode 9 = Tab Tabkeycode 12 = Clearkeycode 13 = Enterkeycode 16 = 阅读全文
posted @ 2016-03-01 09:53 access笨小孩 阅读(323) 评论(0) 推荐(0)

>