随笔分类 -  JQuery

摘要:页面上有两个 Div 用 JQuery 控制 Div 显示和隐藏。实现Div间切换的需求 <div class="IndConK Huans overH" id="divExtTelList"> 11111111111111111111 <div> <div class="IndConB flex" 阅读全文
posted @ 2023-07-11 14:04 海乐学习 阅读(86) 评论(0) 推荐(0) 编辑
摘要://参数 var params = {}; params['module'] = "ai"; params['action'] = "nextAiNode"; params['apiVersion'] = "1.0"; params['userId'] = ""; params['sessionId 阅读全文
posted @ 2021-02-20 12:35 海乐学习 阅读(211) 评论(0) 推荐(0) 编辑
摘要:在项目实践中要在 js前端将table导出至Excel 时 。总会有 文件格式与扩展名不匹配的对话框。头疼了很久。 在这里十分感谢 就是那个_feng 的无私奉献。给出一个好用的Demo。完美地解决了 js导出Excel问题。 他的Demo GuitHub ExcelDownload 实例下载 这里 阅读全文
posted @ 2020-05-21 22:37 海乐学习 阅读(3793) 评论(0) 推荐(0) 编辑
摘要:<link rel="stylesheet" href="themes/plugins/bootstrap-multiselect/css/ace.css" /> <link rel="stylesheet" href="themes/plugins/bootstrap-multiselect/cs 阅读全文
posted @ 2020-05-14 16:14 海乐学习 阅读(1382) 评论(0) 推荐(0) 编辑
摘要:html部分 <table id='grid' class='easyui-datagrid' style='width:100%;height:480px' title='列表' iconCls='icon-table' pagination='true' rownumbers='true' fi 阅读全文
posted @ 2019-09-12 10:10 海乐学习 阅读(1238) 评论(0) 推荐(0) 编辑
摘要:1、<span id="span_id">span的文本</span>的取值。 js取<span>的值并不是用document.getElementById('span_noticesg').value,而是document.getElementById('span_id').innerText。j 阅读全文
posted @ 2018-01-26 17:30 海乐学习 阅读(7826) 评论(0) 推荐(0) 编辑
摘要:jquery获得select option的值 和对select option的操作 jQuery获取Select元素,并选择的Text和Value: 1. $("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项时触发 2. var checkText=$("#select_id").find("opti... 阅读全文
posted @ 2017-06-16 15:56 海乐学习 阅读(1481) 评论(0) 推荐(0) 编辑
摘要:我们知道<input type="text" class="easyui-validatebox" id="txtrName" name="txtrName" value="" />设置值的时候是直接使用$("#txtrName").val("xxx"); 但是 如果class="easyui-te 阅读全文
posted @ 2017-04-14 13:23 海乐学习 阅读(5006) 评论(0) 推荐(0) 编辑
摘要:jquery操作select(增加,删除,清空) jQuery获取Select选择的Text和Value: 比如<select class="selector"></select> 1、设置value为pxx的项选中 2、设置text为pxx的项选中 这里有一个中括号的用法,中括号里的等号的前面是属 阅读全文
posted @ 2017-04-14 11:53 海乐学习 阅读(319306) 评论(5) 推荐(6) 编辑
摘要:https://github.com/douglascrockford/JSON-js使用其中的 json2.js 作为兼容。这个JS中的函数将JSON对象转换成JSON字符串,解决 IE6、7、8不能使用 JSON.stringify 函数的问题!这样JSON.stringify 便可以正常使用!... 阅读全文
posted @ 2015-04-16 16:49 海乐学习 阅读(567) 评论(0) 推荐(0) 编辑
摘要:语法解释:1. $("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项时触发2. var checkText=$("#select_id").find("option:selected").text();//获取Select选择的Text3. var checkValue=$("#select_id").val();//获取Select选择的Value4. var checkIndex=$("#select_id " 阅读全文
posted @ 2013-01-06 12:09 海乐学习 阅读(297) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示