- 博客(85)
- 收藏
- 关注
原创 查询同级的元素
<a href="javascript:void(0)" class="digital_click" data-user_id="111" data-type="1" title="点击查看">查看更多</a> 需取 data-user_id的值111, js可按下面...
2020-03-24 11:10:00
178
原创 MYSQL批量修改表前缀与表名sql语句
SELECTCONCAT( 'ALTER TABLE ', table_name, ' RENAME TO hs_', substring(table_name, 6), ';')FROMinformation_schema. TABLESWHEREtable_name LIKE &...
2020-03-24 11:10:00
317
1
原创 JS实现点击按钮,下载文件
方法二:通过form提交由于ajax函数的返回类型只有xml、text、json、html等类型,没有“流”类型,所以通过ajax去请求该接口是无法下载文件的,所以我们创建一个新的form元素来请求接口。/js部分/复制代码复制代码//方法二:通过form$eleBtn2.click(function(){ var $eleForm = $("<fo...
2020-03-24 11:10:00
937
原创 小程序下载文件
/** * 下载文件并预览 */downloadFile:function(e){ var index = e.currentTarget.dataset.index;//获取当前长按图片下标 let url=this.data.files[index]['path']; wx.downloadFile({ ...
2020-03-24 11:10:00
919
1
原创 用js进行日期的加减
用js进行日期的加减如题,开始查了查js的使用文档,但没发现可以直接用的函数,于是就想自己写函数来着,这就要涉及到每个月天数的判断,如果是2月份的话,还要涉及到闰年的判断,虽然不复杂但我想js应该不会这么低级,于是查了下资料,终于有了如下重大发现,以在某个日期上加减天数来说,其实只要调用Date对象的setDate()函数就可以了,具体方法如下: function add...
2020-03-24 11:09:59
4375
2
原创 搜索框加时间搜索控件
{field: 'date_string', title: __('Date_string'),formatter: Table.api.formatter.datetime, operate: 'LIKE', type: 'datetime', addclass: 'datetimepicker...
2020-03-24 11:09:59
786
原创 Thymeleaf 遍历
<select name="catId"> <option th:each="cat,start:${catList}" th:value="${cat.id}" th:text="${cat.name}"></option>...
2020-03-24 11:09:51
181
原创 fastadmin 主键不是ID时,表格内置样式toggle无法执行的解决方法
2019-08-29 14:54:31 pmlptf 阅读数 38更多分类专栏: fastadmin版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。本文链接:https://blog.youkuaiyun.com/pmlptf/article/details/100138111Table.api.formatter.toggle...
2020-03-24 11:09:51
1139
原创 判断远程图片是否存在
function img_exists($url) { $curl = curl_init($url); curl_setopt($curl, CURLOPT_NOBODY, true);// 不取回数据 curl_exec($curl);// 发送请求 $httpCode = curl_getinfo($curl,CURLINFO_HTTP...
2020-03-24 11:09:46
340
原创 http://www.xueh188.top/index.php/archives/12/
如果你只需要查询某个字段的值,还可以使用getField方法$Form = M("Form"); // 获取标题$title = $Form->where('id=3')->getField('title'); ...
2020-03-24 11:08:10
481
原创 http://www.xueh188.top/index.php/archives/34/
返回的json中还有对象 例如 需显示 bsEnterprise中的entName ,在layui中 常规是无法显示的{ "code": 0, "msg": "", "count": 1, "data": [{ "createTime&#...
2020-03-24 11:08:04
714
原创 http://www.xueh188.top/index.php/archives/32/
List<Integer> certTypeList=new ArrayList<>();if(certType!=null){ String[] certTypeArr=certType.split(","); for (int i = 0; i < certTypeArr.length; i++) { ...
2020-03-24 11:08:04
392
原创 http://www.xueh188.top/index.php/archives/36/
https://www.cnblogs.com/fhen/p/5896105.html启动操作nginx -c /usr/local/nginx/conf/nginx.conf -c参数指定了要加载的nginx配置文件路径停止操作停止操作是通过向nginx进程发送信号来进行的步骤1:查询nginx主进程号ps -ef | grep nginx在进程列表里 面找master...
2020-03-24 11:08:04
3028
原创 http://www.xueh188.top/index.php/archives/11/
php.inizend_extension="xbug dll路径"xdebug.auto_trace=Onxdebug.show_exception_trace=Onxdebug.remote_autostart=Onxdebug.remote_enable=Onxdebug.remote_handler=dbgpxdebug.pro...
2020-03-24 11:08:03
445
原创 http://www.xueh188.top/index.php/archives/33/
entity public class BsEnterpriseFinanceYear extends Model<BsEnterpriseFinanceYear> { private BsEnterprise bsEnterprise;//另一个类对象}Mapper <!-- 通用查询映射结果 --> <re...
2020-03-24 11:08:03
1213
原创 http://www.xueh188.top/index.php/archives/28/
{ field: 'buttons', width: "120px", title: __('操作'), ...
2020-03-24 11:08:03
14834
原创 http://www.xueh188.top/index.php/archives/26/
Add.html添加一个选择按钮<div class="form-group"> <label class="control-label col-xs-12 col-sm-2">{:__('Goods_name')}:</label> <div cla...
2020-03-24 11:08:02
1490
原创 http://www.xueh188.top/index.php/archives/35/
在 /** * 初始化事件 */ initEvent: function () {}添加table.on('tool(bsDepartmentTable)', page.option);即 init: function () { myTable.on('tool(bsEnterp...
2020-03-24 11:08:02
666
原创 http://www.xueh188.top/index.php/archives/23/
search: false, //启用普通表单搜索 commonSearch: true, //可以控制是否默认显示搜索单表,false则隐藏,默认为false searchFormVisible: true, ...
2020-03-24 11:08:01
977
原创 http://www.xueh188.top/index.php/archives/27/
$(".btn-check").on("click", function (e) { var rows = table.bootstrapTable('getAllSelections'); if(rows.length == 0){ ...
2020-03-24 11:08:01
415
原创 http://www.xueh188.top/index.php/archives/16/
https://forum.fastadmin.net/thread/189这是由于你只部署了HTML代码,但是未添加datetimepicker的事件,所以不生效,你需要在JS中的index方法中添加如下代码:review:function(){ //绑定select元素事件 require(['bootstrap-datetimepicker&...
2020-03-24 11:08:01
1862
原创 http://www.xueh188.top/index.php/archives/19/
$where无法直接修改,如果需要修改$where中的条件,可以在调用buildparams之前使用$this->request->get(["filter", "参数值"]);
2020-03-24 11:08:01
610
原创 http://www.xueh188.top/index.php/archives/18/
请输入链接描述Where 条件表达式格式为:$map['字段名'] = array('表达式', '操作条件');其中 $map 是一个普通的数组变量,可以根据自己需求而命名。上述格式中的表达式实际是运算符的意义:ThinkPHP运算符 与 SQL运算符 对照表TP运算符 SQL运算符 例子 实际查询条件...
2020-03-24 11:08:01
1371
原创 http://www.xueh188.top/index.php/archives/24/
var Controller = { index: function () { // 初始化表格参数配置 Table.api.init({ extend: { index_url: 'slide/slide/index...
2020-03-24 11:08:01
869
原创 http://www.xueh188.top/index.php/archives/31/
public class Page implements Serializable{private int currentPageNum;//当前页private int pageSize=5;//每页显示的条数private int totalRecords;//总记录条数private int startIndex;//查询的开始记录索引private int...
2020-03-24 11:08:01
548
原创 http://www.xueh188.top/index.php/archives/7/
setTimeout(()=>{ this.jump('/login');},2000);
2020-03-24 11:08:00
1576
原创 http://www.xueh188.top/index.php/archives/13/
onLoadSuccess: function (data) { // 在表格第次加载成功后,刷新左侧菜单栏彩色小角标,支持一次渲染多个 // 如果需要在进入后台即显示左侧的彩色小角标,请使用服务端渲染方式,详情修改application/admin/controller/Index.php Backend.api.sidebar({ ...
2020-03-24 11:08:00
692
原创 http://www.xueh188.top/index.php/archives/9/
图解phpstorm常用快捷键CTRL+N 查找类Ctrl+Shift+J快捷键,所有多余的字符(空格,引号和加号)被去掉了CTRL+SHIFT+N 全局搜索文件 ,优先文件名匹配的文件CTRL+SHIFT+ALT+N 查找php类名/变量名 ,js方法名/变量名, css 选择器CIRL+B 找变量的来源,跳到变量申明处 (CTRL+ 鼠标单击 也可以)CTRL+ALT...
2020-03-24 11:08:00
2631
原创 http://www.xueh188.top/index.php/archives/15/
JS//在表格内容渲染完成后回调的事件table.on('post-body.bs.table', function (e, settings, json, xhr) { $(".btn-editone").data("area", ["95%","95%"]);}); ...
2020-03-24 11:08:00
445
原创 http://www.xueh188.top/index.php/archives/22/
ellStyle: function () {return {css: {"width": "600px"}}}
2020-03-24 11:08:00
327
原创 http://www.xueh188.top/index.php/archives/21/
根据端口号查看PIDnetstat -ano | findstr 80808080为端号口如果无返回值 则表示该端口未被占用查看所有已用的端口netstat
2020-03-24 11:08:00
454
原创 http://www.xueh188.top/index.php/archives/39/
加data-field 列表显示读取的字段 data-field="username"
2020-03-24 11:07:59
1369
原创 http://www.xueh188.top/index.php/archives/38/
在本包resource中新lib目录,将包放入lib目录中 <dependency> <groupId>masmgc.sdk</groupId> <artifactId>mms</artifactId> <version>0....
2020-03-24 11:07:59
633
原创 http://www.xueh188.top/index.php/archives/41/
{field: 'status', title: __('Status'),operate:false,formatter:function(value,row,index){ if (row.status === -2) ...
2020-03-24 11:07:59
363
原创 http://www.xueh188.top/index.php/archives/3/
使用 v-html 指令<divv-html="'<P>11111111</P><P>11111111</P>'"></div>
2020-03-24 11:07:59
1005
1
原创 http://www.xueh188.top/index.php/archives/17/
页面添加该样式: <style> .content{ min-height:700px; } </style>
2020-03-24 11:07:59
2039
原创 http://www.xueh188.top/index.php/archives/37/
js:dosave = function (){ alert("成功啦!"); }错误写法一般有以下两种,很致命:function dosave(){ alert("会报错!!"); }和var dosave = function (){ alert("会报错!!&...
2020-03-24 11:07:58
793
原创 http://www.xueh188.top/index.php/archives/42/
{ field: 'buttons', width: "120px", title: __('操作'), table: table,...
2020-03-24 11:07:52
595
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人