![](https://img-blog.csdnimg.cn/20190927151117521.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
前端
前端
excellentchen
未来的世界,我是男主角!
展开
-
js数组的基本用法及数组根据下标(数值或字符)移除元素
1、创建数组 var array = new Array(); var array = new Array(size);//指定数组的长度 var array = new Array(item1,item2……itemN);//创建数组并赋值 2、取值、赋值 var item = array[index];//获取指定元素的值 array[index] = value;//为指定元素赋值 3、添加...原创 2018-05-24 21:10:19 · 14876 阅读 · 0 评论 -
jquery操作select(取值,设置选中)
jquery操作select(取值,设置选中) 每一次操作select的时候,总是要出来翻一下资料,不如自己总结一下,以后就翻这里了。 比如<select class="selector"></select> 1、设置value为pxx的项选中 $(".selector").val("pxx"); 2、设置text为pxx的项选中 $(".selector").find(&原创 2018-05-24 21:20:18 · 385 阅读 · 0 评论 -
限制jsp页面文字显示长度
如果不是一定要限制字数,可以限制长度的话 <table style="table-layout:fixed;"><tr><td width=80> <div style="width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;">超级神奇的...原创 2018-05-24 20:43:27 · 3186 阅读 · 0 评论 -
CSS3 [attribute^=value] 选择器
定义和用法The [attribute^=value] 选择器匹配元素属性值带指定的值开始的元素。实例设置class属性值以"test"开头的所有元素的背景颜色:[class^="test"]{background:#ffff00;}...原创 2018-05-24 21:04:32 · 967 阅读 · 0 评论 -
用css 添加手状样式,鼠标移上去变小手
用css 添加手状样式,鼠标移上去变小手cursor:pointer;用JS使鼠标变小手onmouseover(鼠标越过的时候)onmouseover="this.style.cursor='hand'"cursor其他取值 auto :标准光标 default :标准箭头 pointer, hand ...原创 2018-05-24 21:14:47 · 3560 阅读 · 0 评论