2022年9月8日

jQuery ajax 使用同步模式(禁用异步模式)

摘要: $.ajaxSettings.async = false $.getJSON('__MODULE__/Echart/l_hjcate_cun', { cun_id: '{:I("cun_id")}' }, function (res) { res.forEach(i => { option.xAxi 阅读全文

posted @ 2022-09-08 11:16 小馬過河﹎ 阅读(97) 评论(0) 推荐(0)

layui主动触发表单控件事件select|checkbox|radio

摘要: ### 以radio为例,监听事件的代码为: ```javascript form.on('radio(filter)', function (data) { // dosomething }) ``` ### 主动触发事件: ```javascript $('#radioID').next().t 阅读全文

posted @ 2022-09-08 11:15 小馬過河﹎ 阅读(771) 评论(0) 推荐(0)

jquery.table.rowspan 自动合并单元格rowspan插件使用方法

摘要: jquery.table.rowspan.js源码 (function ($) { $.fn.extend({ //表格合并单元格,colIdx要合并的列序号,从0开始 "rowspan": function (colIdx) { return this.each(function () { var 阅读全文

posted @ 2022-09-08 11:12 小馬過河﹎ 阅读(507) 评论(0) 推荐(0)

ThinkPHP3上传文件使用保存为原文件名并且支持覆盖

摘要: $upload->saveName = []; $upload->replace = true; 阅读全文

posted @ 2022-09-08 11:02 小馬過河﹎ 阅读(34) 评论(0) 推荐(0)

ThinkPHP统计字段+1或者-1

摘要: $User = M("User"); // 实例化User对象 $User->where('id=5')->setInc('score', 3); // 用户的积分加3 $User->where('id=5')->setInc('score'); // 用户的积分加1 $User->where('i 阅读全文

posted @ 2022-09-08 10:40 小馬過河﹎ 阅读(152) 评论(0) 推荐(0)

uni-app picker-view 简单使用一例

摘要: 文档链接 https://uniapp.dcloud.io/component/picker-view.html 源码 <template> <view class="u-p-30"> <u-divider>{{edus[current].label}}</u-divider> <picker-vi 阅读全文

posted @ 2022-09-08 10:37 小馬過河﹎ 阅读(1124) 评论(0) 推荐(0)

uniapp picker-view picker-view-column 选择日期一例

摘要: 文档链接 https://uniapp.dcloud.io/component/picker-view.html 源码 <template> <view class="u-p-30"> <u-divider>{{year}}年{{month}}月{{day}}日</u-divider> <picke 阅读全文

posted @ 2022-09-08 10:35 小馬過河﹎ 阅读(526) 评论(0) 推荐(0)

cxselect的简单使用/ajax无限联动

摘要: jQuery cxSelect 1.4.2 源码 /*! * jQuery cxSelect * @name jquery.cxselect.js * @version 1.4.2 * @date 2017-09-26 * @author ciaoca * @email ciaoca@gmail.c 阅读全文

posted @ 2022-09-08 10:30 小馬過河﹎ 阅读(269) 评论(0) 推荐(0)

网页整体变成灰色

摘要: <head> <style> html { -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -ms-filter: grayscale(100%); -o-filter: grayscale(100%); filter:p 阅读全文

posted @ 2022-09-08 10:11 小馬過河﹎ 阅读(164) 评论(0) 推荐(0)

ThinkPHP上传图片压缩尺寸

摘要: function layuiUpload($path = '') { $upload = new \Think\Upload(); $upload->maxSize = 2097152; $upload->exts = ['jpg', 'jpeg', 'png', 'gif', 'doc', 'do 阅读全文

posted @ 2022-09-08 10:10 小馬過河﹎ 阅读(58) 评论(0) 推荐(0)

导航