随笔分类 -  js.code

摘要:小数点后只能有最多两位(数字,中文都可输入),不能输入字母和运算符号:57) && event.keyCode!=46 || /\.\d\d$/.test(value))event.returnValue=false">屏蔽输入法ENTER键可以让光标移到下一个输入框只能输入 数字,小数点,减号(-... 阅读全文
posted @ 2015-07-16 18:34 立己达人 阅读(1431) 评论(0) 推荐(0)
摘要:lazyload.js/* * Lazy Load - jQuery plugin for lazy loading images * * Copyright (c) 2007-2011 Mika Tuupola * * Licensed under the MIT license: * htt... 阅读全文
posted @ 2015-07-01 16:35 立己达人 阅读(279) 评论(0) 推荐(0)
摘要:moment.src.js//! moment.js//! version : 2.10.3//! authors : Tim Wood, Iskren Chernev, Moment.js contributors//! license : MIT//! momentjs.com(function... 阅读全文
posted @ 2015-06-30 14:36 立己达人 阅读(790) 评论(0) 推荐(0)
摘要:http://www.htmleaf.com/jQuery/Buttons-Icons/201502051331.html 阅读全文
posted @ 2015-06-29 10:03 立己达人 阅读(1390) 评论(0) 推荐(0)
摘要:alert($(window).height()); //浏览器时下窗口可视区域高度alert($(document).height()); //浏览器时下窗口文档的高度alert($(document.body).height());//浏览器时下窗口文档body的高度alert($(docume... 阅读全文
posted @ 2015-06-27 11:36 立己达人 阅读(142) 评论(0) 推荐(0)
摘要:官方API地址:http://jqueryui.com/demos/sortable/所有的事件回调函数都有两个参数:event和ui,浏览器自有event对象,和经过封装的ui对象ui.helper - 表示sortable元素的JQuery对象,通常是当前元素的克隆对象ui.position -... 阅读全文
posted @ 2015-06-11 16:22 立己达人 阅读(199) 评论(0) 推荐(0)
摘要:// Backbone.js 1.1.0// (c) 2010-2011 Jeremy Ashkenas, DocumentCloud Inc.// (c) 2011-2013 Jeremy Ashkenas, DocumentCloud and Investigative ... 阅读全文
posted @ 2015-05-07 10:09 立己达人 阅读(197) 评论(0) 推荐(0)
摘要:// Underscore.js 1.5.2// http://underscorejs.org// (c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors// ... 阅读全文
posted @ 2015-05-07 10:08 立己达人 阅读(274) 评论(0) 推荐(0)
摘要:统计字母数字等字符 阅读全文
posted @ 2014-10-24 14:43 立己达人 阅读(179) 评论(0) 推荐(0)