![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jquery
Deer__青春
这个作者很懒,什么都没留下…
展开
-
ajax 跨域异步调用接口
直接上代码// 这里直接定义一个input 按钮即可<script> function fun1(){ $.ajax({ type : "POST", async : false, url : "http://127.0.0.1:8080/demo", dataType : "jsonp", ...原创 2020-03-05 15:15:33 · 221 阅读 · 0 评论 -
层级列表
jqGrid 两层级列表结构<html> <head> <title>jqGrid 实例</title> </head> <body> ···代码省略··· <table id="sg3"></table> <div id="psg3"><...原创 2019-07-17 15:32:23 · 379 阅读 · 0 评论 -
layer.js--强大的弹出框
引入js<script src="<%=basePath%>plugins/layer/layer.js"></script>页面弹出框代码<table id="indexTable" class="table table-bordered" style="display: none;">原创 2018-09-07 10:22:54 · 1121 阅读 · 0 评论 -
form表单提交验证bootstrapValidator
初始化表单$('#addForm').bootstrapValidator({ message: 'This value is not valid',// excluded: [":disabled"], feedbackIcons: { valid: 'glyphicon glyphicon-ok', invalid: 'glyphicon...原创 2018-08-23 13:49:00 · 496 阅读 · 0 评论 -
bootstrapTable插件简单用法
$('#matterLsit').bootstrapTable({//当前table标签Id method: 'post', contentType: "application/x-www-form-urlencoded", url: '',// idField: "projectId", striped: true, //是否显示行间隔色 pagi...原创 2018-07-06 13:40:11 · 1302 阅读 · 0 评论 -
ztree简单用法
初始化数据var settingCatalog = {//通过ajax进行数据加载 async: { enable: true, contentType: &amp;quot;application/json&amp;quot;, url: &amp;quot;&amp;quot;, autoParam: [&a原创 2018-07-06 13:32:34 · 462 阅读 · 0 评论 -
form提交
form表单提交提交select标签值"searchForm" action="${ctx}/basedata/cdlyUnitProductBom/unitlist" method="post" class="breadcrumb form-search"> "pageNo" name="pageNo" type="hidden" value="${page.pageN原创 2018-01-03 17:33:58 · 378 阅读 · 0 评论 -
button多选
input标签遍历,取值<html><body><script type="text/javascript" src="/jquery/jquery.js"></script><button type="radio" onclick="fun1()">选择</button><input type="checkbox" name="myLike" value="Like1" id="Like1原创 2017-12-29 17:14:22 · 484 阅读 · 0 评论 -
select2
select2插件的使用一.文件需要引入select2.full.js、select2.min.css(4.0.1版本)和jquery.1.11.1最新版本的select2如果引用的jquery版本较低的话,某些功能无法正常使用。比如:清除功能 allowClear : true最新版本请使用标签二.placeholderplaceholder占位提示文字,如果需要清楚功能,则必须设置plac原创 2017-12-21 15:33:50 · 467 阅读 · 0 评论 -
Treeview
简单介绍一下JQUERY中的插件Treeview的用法,地址:http://docs.jquery.com/Plugins/Treeview (有大量的例子,下载源码)http://jquery.bassistance.de/treeview/demo/ (有大量的例子参考)具体介绍需要导入的js和cssjs: http://code.jquery.com/jquery-lates转载 2017-11-22 14:14:34 · 1783 阅读 · 0 评论 -
jQuery的ajax表单提交,获取元素内容方法
jQuery的ajax表单提交.val() 获取指定元素的value值,通常指表单元素.html() 获得指定的html元素以及文本.text() 获得当前元素表现的文本<html> <title>页面标题</title><head></head><body> <select> <option>北京</option> <optio原创 2017-11-20 19:15:09 · 1103 阅读 · 0 评论