随笔分类 -  Jquery

ztree编辑时默认选中
摘要:var nodes = treeobj.transformToArray(treeobj.getNodes()); if (nodes.length > 0) { for (var i = 0; i < nodes.length; i++) { if (nodes[i].Id == noid) { 阅读全文

posted @ 2016-04-29 11:26 咸菜v 阅读(1128) 评论(0) 推荐(0)

uploadify 去掉进度条
摘要:在页面上放一个隐藏div如再把进度条绑定到隐藏div1234567$(function() {$("#file_upload").uploadify({'queueID' : 'some_file_queue','swf' : '/uploadify/uploadify.swf','uploader... 阅读全文

posted @ 2015-11-26 10:36 咸菜v 阅读(435) 评论(0) 推荐(0)

json数组的添加删除
摘要:listQuesParent.push(Questionslist[i]); //添加listQuesParent.splice(i, 1); //删除 阅读全文

posted @ 2015-08-13 17:57 咸菜v 阅读(220) 评论(0) 推荐(0)

在光标选中位置插入文字js
摘要://调用方法insertText(document.getElementById('codeTextarea'), "{GD_" + name + "}")//获取文本框中光标的位置function insertText(obj, str) { if (document.selection) ... 阅读全文

posted @ 2015-08-12 17:14 咸菜v 阅读(492) 评论(0) 推荐(0)

Jquery设置光标定位到指定位置
只有注册用户登录后才能阅读该文。

posted @ 2015-04-21 13:47 咸菜v 阅读(17) 评论(0) 推荐(0)

导航