上一页 1 ··· 121 122 123 124 125
摘要: js创建对象并赋值其属性原创2013年09月22日13 : 45 : 40 7383今天在开发中遇到js对象操作问题,做了以下总结: 对象定义var obj = new Object();或var obj = {}; 添加属性obj.name = 'tom';obj.ses = 'man'; 添加方 阅读全文
posted @ 2018-04-06 20:46 程序员小明1024 阅读(1276) 评论(0) 推荐(0) 编辑
摘要: 1. append()和prepend() 假设 <div class='a'> //< you want div c to append in this <div class='b'>b</div></div>123123使用 $('.a').append($('.c'));11效果如下: <di 阅读全文
posted @ 2018-04-06 20:45 程序员小明1024 阅读(157) 评论(0) 推荐(0) 编辑
摘要: .css2 { overflow: hidden; /*自动隐藏文字*/ text-overflow: ellipsis;/*文字隐藏后添加省略号*/ white-space: nowrap;/*强制不换行*/ width: 18em;/*不允许出现半汉字截断*/ color:#6699ff;bor 阅读全文
posted @ 2018-04-06 20:42 程序员小明1024 阅读(280) 评论(0) 推荐(0) 编辑
摘要: ReadOnly和Disabled的作用是使用户不能够更改表单域中的内容.但是二者还是有着一些区别的: 1、Readonly只针对input(text/password)和textarea有效,而disabled对于所有的表单元素有效,包括select,radio,checkbox,button等。 阅读全文
posted @ 2018-04-06 20:40 程序员小明1024 阅读(247) 评论(0) 推荐(0) 编辑
摘要: // 定义关注领域拼接id var focusAreasIdStr = ''; $("div[name='focusArea']").each(function() { var falg = $(this); if ($(this).hasClass("choose-box-item-blue")) 阅读全文
posted @ 2018-04-06 20:38 程序员小明1024 阅读(860) 评论(0) 推荐(0) 编辑
摘要: $(this).index()在使用jQuery时出镜率非常高,在编写选项卡及轮播图等特效时经常用到,但$(obj).index(this)似乎有点陌生。 为便于理解,以下分两个使用场景加以分析。 场景一: 同级元素标签相同 <ul> <li>one</li> <li>two</li> <li>th 阅读全文
posted @ 2018-04-06 20:34 程序员小明1024 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 可以参考 https://www.cnblogs.com/konglxblog/p/14063101.html 问题背景: 我要在一个表单里同时一次性提交多名乘客的个人信息到SpringMVC,前端HTML和SpringMVC Controller里该如何处理? 第1种方法:表单提交,以字段数组接收 阅读全文
posted @ 2018-04-06 20:21 程序员小明1024 阅读(511) 评论(1) 推荐(1) 编辑
上一页 1 ··· 121 122 123 124 125