
Jquery
WDYDXF
这个作者很懒,什么都没留下…
展开
-
jstree 判断是否是根节点
.bind('select_node.jstree', function (event, data) { if ($(data.rslt.obj).attr('rel') == 'root') { $(".helpinfo").show(); } else { $(".helpinfo").hide(); }原创 2011-12-23 12:01:15 · 8464 阅读 · 0 评论 -
Underscore.js 1.3.3 中文解释
// Underscore.js 1.3.3 // (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc. // Underscore is freely distributable under the MIT license. // Portions of Underscore are inspired or borrowed from Prototy转载 2014-01-02 20:58:24 · 2432 阅读 · 0 评论 -
uploadify ie9 empty() 缺少对象
把 SWFUpload.prototype.cleanUp 方法修改为: SWFUpload.prototype.cleanUp = function (f) { try { if (this.movieElement && typeof (f.CallFunction) === "unknown") { this.debug("Removi原创 2013-05-02 12:46:54 · 3212 阅读 · 1 评论 -
js 控制textbox只能输入数字
只能填写数字 $('.actionsortcontrol').on('keypress', '.txtdelay', function (event) { var keyCode = event.which; if (this.value.length >= 5) return false;原创 2013-04-27 11:20:46 · 1506 阅读 · 0 评论 -
jquery queue的使用例子
$(function () { // test(); }); function test() { try { var result = ''; var _array = new Array(); var arrayPara原创 2013-04-22 16:40:33 · 1101 阅读 · 0 评论 -
jquery的hide一个元素,需要注意的问题(offset)
将一个元素执行hide()后,其offset()都会变为0,但是实际上通过attr('left')和attr('top')得到的值,才是正确的left和top原创 2013-04-22 21:03:33 · 1527 阅读 · 0 评论 -
js 验证手机号,邮箱一类的东西,js定位html元素,浏览器滚到到html元素
邮箱: if (!(/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test($.trim($(this).val())))) { alert('不正确');} 手机号: if (!(/^1[3|5|8][0-9]\d{4,8}$/.test($.trim($(this).val())))) { alert('不正确')} js原创 2012-02-29 14:17:29 · 2153 阅读 · 0 评论 -
asp.net 验证码
专门处理图片的ashx文件: using System; using System.Web; using System.IO; public class VerificationHandler : IHttpHandler, System.Web.SessionState.IRequiresSessionState { public void ProcessRequest(Http转载 2012-02-29 14:09:00 · 849 阅读 · 0 评论 -
jstree 新建node后,刷新jstree的改变的那一部分
背景: 左边是jstree,右边是iframe,左边jstree上有个新建按钮,点击后,右边iframe打开,新建完成后,点击右边iframe中的保存按钮.右边的jstree自动就加上了这个节点: 解决方案: function refreshTreeFromIframe1('新建node的ID', '新建node的parentID') { $jstree = $.j原创 2011-12-27 15:22:39 · 15415 阅读 · 1 评论 -
Jquery 得到当前页面的Iframe,并调用iframe中的方法
function GetTxtValue(passvalue) { var frmSelectCourseUnit; var frmContent; $.each(top.frames, function (index) { if (this.name == 'frmSelectCourseUn原创 2011-12-26 13:15:08 · 8789 阅读 · 0 评论 -
Jquery 得到DropDownList选中项
var selectedItem = $(".enrollActiveDll > select option:selected").text();原创 2011-12-22 14:36:15 · 2837 阅读 · 0 评论 -
ocupload jquery 的应用
$(function () { $(".uploadfile").upload({ action: 'CourseXMLFileUploadHander.ashx', name: 'xml', params: { 'type': 'uplo原创 2011-12-22 09:22:54 · 5266 阅读 · 0 评论 -
Backbone.js 0.9.2 中文解释
// Backbone.js 0.9.2 // (c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc. // Backbone may be freely distributed under the MIT license. // For all details and documentation: // http://backbonejs.org (转载 2014-01-02 20:55:24 · 2024 阅读 · 0 评论