摘要: 这里循环 显示,结果为空。a56爆大奖在线娱乐就加了一个判断,然后就可以显示。 阅读全文
posted @ 2021-01-27 17:20 墨晓溪2288 阅读(33) 评论(0) 推荐(0) 编辑
摘要: where方法和whereOr方法在复杂的查询条件中经常需要配合一起混合使用,下面举个例子: $result = Db::table('think_user')->where(function ($query) { $query->where('id', 1)->whereor('id', 2); 阅读全文
posted @ 2021-01-26 13:51 墨晓溪2288 阅读(609) 评论(0) 推荐(0) 编辑
摘要: 1、APP端:uview <u-upload ref="uUpload" name="image" max-count="3" :action="action" :file-list="filesArr" :header="header" class="bg-1"> </u-upload> 上传文件 阅读全文
posted @ 2021-01-26 11:29 墨晓溪2288 阅读(474) 评论(0) 推荐(0) 编辑
摘要: 1、字符串截取:substr() stringObject.substr(start [, length ]) 2、length stringObject.length 3、字符串转数字 parseInt(s); // 234 阅读全文
posted @ 2021-01-22 20:58 墨晓溪2288 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 1、顶部,加:<script src="html5plus://ready"></script> 提前执行 plus 加载 2、ONload 里面做这种判断即可 。 if(window.plus){ // 在这里调用5+ API }else{// 兼容老版本的plusready事件 document 阅读全文
posted @ 2021-01-22 15:17 墨晓溪2288 阅读(41) 评论(0) 推荐(0) 编辑
摘要: (1)单选,多选,选中以后的颜色 :active-color="check_color" (2)日期,从星期1开始 (3)组织架构。 阅读全文
posted @ 2021-01-21 11:38 墨晓溪2288 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 1、 forEach 循环 list.forEach(function(item,index){ }) 阅读全文
posted @ 2021-01-21 10:27 墨晓溪2288 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 现在的字段,都是从数据库或者前端,复制粘贴过来的,写错的几率很小,a56爆大奖在线娱乐不要一味的去一行一行的过滤代码。 看是否有写错,就算是写错,编辑器也会报提醒,a56爆大奖在线娱乐真的不会写错、 没写错,结果没出来,主要检查以下几个地方: 1、post 和 get 方法,参数值,以及参数类型,以及接收类型。 2、PHP 里面, 阅读全文
posted @ 2021-01-20 19:40 墨晓溪2288 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 定义是这样的: public static function _bind_data($item) { $item['status_name'] = self::$status[$item['status']]; $item['leader'] = stringToArray($item['leade 阅读全文
posted @ 2021-01-20 18:14 墨晓溪2288 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 1、$where = [ ] , 会覆盖之前赋值的 $where['id'] ,a56爆大奖在线娱乐对 $where 赋值时,尽量使用 下标取值。 2、vue 用 组件的时候,在父页面中 ,传递参数给 子组件, 然后 父页面清除掉 此值 , 因为这条记录在子页面中,用watch监听 , 被保留在一个缓存中,a56爆大奖在线娱乐,父 阅读全文
posted @ 2021-01-19 23:52 墨晓溪2288 阅读(41) 评论(0) 推荐(0) 编辑