随笔分类 -  【H】JS

摘要:1.checkbox 单选 http://www.cnblogs.com/CESC4/p/7791821.html 2.checked的选中和未选中 http://www.cnblogs.com/CESC4/p/7643963.html 3.获取radio 或者check选定的值。 http://w 阅读全文
posted @ 2017-11-06 10:32 Legolas_4 阅读(160) 评论(0) 推荐(0)
摘要:<div id="areaRange" class="boardingList shipIcon7 shipIcon8"> <div class="cb"><label>区域范围</label> <input type="checkbox" name="areaRange" value="100" 阅读全文
posted @ 2017-11-06 10:03 Legolas_4 阅读(274) 评论(0) 推荐(0)
摘要:<input id="msg_type" name="area_msg_type" data-options="width:100,prompt: '预警类型'"/> <input id="warning_date_start" name="warning_date_start" type="tex 阅读全文
posted @ 2017-11-03 10:37 Legolas_4 阅读(224) 评论(0) 推荐(0)
摘要:var select = $('#tonnagePage').find('input[type="checkbox"]:checked').not("#tonnageCheckAll");http://www.jb51.net/article/49349.htm 阅读全文
posted @ 2017-10-31 16:02 Legolas_4 阅读(335) 评论(0) 推荐(0)
摘要:var historyList = new Vue({ el: '#historyList', data: { items: [ //{text:'3000吨以下',value:'0-3000'}, //{text:'5000吨 至 1.0w吨',value:'5000-10000'}, //... 阅读全文
posted @ 2017-10-31 14:05 Legolas_4 阅读(9426) 评论(0) 推荐(0)
摘要:mapWx = { shipType: shipType, tonnage: tonnage, arrivePorts: arrivePorts, leavePorts: leavePorts, shipStatus: shipStatus, sailingStatus: sailingStatus 阅读全文
posted @ 2017-10-31 10:17 Legolas_4 阅读(170) 评论(0) 推荐(0)
摘要:jquery checkbox选中、改变状态、change和click事件 jquery判断checked的三种方法:.attr('checked); //看版本1.6+返回:”checked”或”undefined” ;1.5-返回:true或false.prop('checked'); //16 阅读全文
posted @ 2017-10-25 10:51 Legolas_4 阅读(193) 评论(0) 推荐(0)
摘要:$(function() { $('#searchFrom input').bind('keyup', function (event) {/* 增加回车提交功能 */ if (event.keyCode == '13') { cx(); } });} 阅读全文
posted @ 2017-10-23 14:01 Legolas_4 阅读(139) 评论(0) 推荐(0)
摘要:https://segmentfault.com/q/1010000011443036?sort=created 阅读全文
posted @ 2017-10-18 16:53 Legolas_4 阅读(646) 评论(0) 推荐(0)
摘要:function drawProgressNum(num, total) { var leftWidth = (num / total) * 100; //将百分比保留两位小数 var percentNum = (Math.round(leftWidth*100)/100).toFixed(2) + 阅读全文
posted @ 2017-10-12 13:46 Legolas_4 阅读(699) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/lotusyangjun/article/details/46377253 阅读全文
posted @ 2017-10-11 17:49 Legolas_4 阅读(396) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/zzq900503/article/details/69942930 为什么input checkbox有 checked='checked'还是没选中如果用jQuery1.6+来写的话:建议使用$(element).prop('checked', true 阅读全文
posted @ 2017-10-10 09:15 Legolas_4 阅读(760) 评论(0) 推荐(0)
摘要:success: function (data) { if (data == null) { $("input[name='menu']").attr("checked", false); } else { role_id = JSON.stringify(data.role_id); $("inp 阅读全文
posted @ 2017-10-10 09:13 Legolas_4 阅读(1021) 评论(0) 推荐(0)
摘要:http://www.yilingsj.com/jquery/2017-05-12/517.html https://segmentfault.com/q/1010000007932779 最后一段 加上px 阅读全文
posted @ 2017-09-29 16:40 Legolas_4 阅读(101) 评论(0) 推荐(0)
摘要:<ul id="leftMenu" class="sr-leftBot"> <li v-for="item in resourcesList" class="sr-leftBot-li2"> <!--<a href="#">{{item.name}}</a>--> <a href="#">{{ite 阅读全文
posted @ 2017-09-21 10:32 Legolas_4 阅读(2045) 评论(0) 推荐(0)
摘要:Download the Vue Devtools for a better development experience:https://github.com/vuejs/vue-devtools http://blog.csdn.net/teckeryu/article/details/5491 阅读全文
posted @ 2017-09-18 13:18 Legolas_4 阅读(329) 评论(0) 推荐(0)
摘要:vue变量定义的位置 可以放在本页面内,也可定义在单独的js中, 但是,单独的js文件要放在后边,在他绑定的el元素加载完。 多问!多问!多问! 阅读全文
posted @ 2017-09-06 10:41 Legolas_4 阅读(1155) 评论(0) 推荐(0)
摘要:.. Model–view–viewmodel 阅读全文
posted @ 2017-09-05 15:13 Legolas_4 阅读(88) 评论(0) 推荐(0)
摘要:http://www.codesec.net/view/54850.html 阅读全文
posted @ 2017-09-05 08:44 Legolas_4 阅读(114) 评论(1) 推荐(0)
摘要:role_v作为函数变量传递 阅读全文
posted @ 2017-09-05 08:41 Legolas_4 阅读(172) 评论(0) 推荐(0)