JavaScript
文章平均质量分 76
longcxm1
这个作者很懒,什么都没留下…
展开
-
基本知识
JavaScript变量基本常识1、js变量定义语法(全局变量、局部变量)ECMA-262 写道If the variable statement occurs inside a FunctionDeclaration, the variables are defined with function-localscope in that function, as descr...原创 2011-04-07 21:17:57 · 102 阅读 · 0 评论 -
删除选项
select name="sdfsdf" id="id2"> apple1 apple2 $(document).ready(function(){ var obj=document.getElementById("id2") // 取得select对象 obj.selectedIndex;//表示当前选中项的索引 obj.options[ob...原创 2011-04-08 20:55:54 · 85 阅读 · 0 评论 -
zTree的基本使用
一、使用方法首先,引入相关的js文件;其次,编写相关js代码,如下; var setting = { 在这个里面定义回调函数 callback: { beforeClick: beforeClick, onClick: onClick } }...原创 2012-07-25 23:52:54 · 131 阅读 · 0 评论 -
jQuery UI的基本使用方法
一、概述 jQuery UI is a widget and interaction library built on top of the jQuery JavaScript Library, that you can use to build highly interactive web applications. This guide is designed to get ...原创 2012-07-27 16:30:37 · 150 阅读 · 0 评论 -
add方法的使用
一、add方法的使用 add方法的作用是,在已选择的元素列表中,再添加某一类元素。例如:基本使用方法: The updated set of elements can be used in a following (chained) method, or assigned to a variable for later use. For example:$("p...原创 2012-07-27 16:32:10 · 5143 阅读 · 0 评论