功能描述 在使用FastAdmin一键生成CRUD后,默认的生成的都是原生HTML的组件代码,会有许多不熟悉前端的小伙伴改动起来会比较费劲。其实在FastAdmin中有一个简单的FormBuilder,但是它只能生成一些简单的文本框或下拉框,像FastAdmin中常用的动态下拉框、城市选择框、联动框,它就没法实现了。从1.0.1.20180630_beta版本开始,我们可以使用全新的FormBuilder用于生成我们的组件了。 m5YvsG

在对应的js里的index方法加入以下代码:  table.on('post-body.bs.table',function(){     $(".btn-refund").data("area",["100%","100%"]);   }) 以下是自定义的表格弹框  {                             field: 'is_cancel', width: "120px", title: __('取消预约'), operate: false, table: table, events: Table.api.events.operate,                             

开发前配置 普通浏览器H5唤起微信支付和APP,JS支付下单基本一致,只需要更换把下单的trade_type的字段改成mweb就可以了,在请求微信下单接口的时候会比APP,JS下单多一个mweb_url字段,进行代码接入前,需在微信后台填写授权回调域名,此域名必须经过ICP备案 开发主要流程 用户下单时选择微信支付 商户进行业务逻辑处理并调用微信统一下单接口,微信H5交易类型为:trade_type=MW

一.拉取代码PHP脚本,注意该脚本一定能外网访问 <?php   //本地路径 $local = 'C:\Users\Administrator\Desktop\testmonsoont'; //仓库地址 $remote = 'https://gitee.com/showlb/monsoons.git';   //密码 $password = '123456';   //获取请求参数 $request = file_get_contents('php://input'); if (empty($request)) {     die('request is empty'); }   //验证密码是否正确 $data = json_decode($request, true); if ($data['password'] != $password)?

在PHP中使用goto方法去进行截至跳转 直接上线代码案例: $number = 1; switch($munber){ case 1: goto one: echo "frist one"; case 2: goto two: echo "second two" case3: goto three: echo "third three"; } one: echo " 武林第一!"; //exit; two: echo " 武林第二!"; //exit; three: echo " 武林?

copy 1.jpeg/b+1.zip=3.jpg 通过压缩包和图片合并成一张新的图片,然后把3.jpg图片后缀改成.zip,解压出来就是1.zip里面的文件了,只是是压缩包

Mysql8.0 远程连接数据库 在Java开发项目中需要许多人会同时访问同一个数据库,将数据库能够让别人远程连接的方法如下 使用MySql 数据库 use mysql; 修改root用户的可访问路径为%,%即所有地址可以访问 update user set host='%' where user='root'; 设置root用户密码加密方式为 mysql_native_password update user set plugin='mysql_native_password' where user='root'; 设置远程访问授权 grant all on *.* to 'root'@'%'

wxml多层循环 <view class="container"> <view class='mainbox'> <view class='newslist' wx:for="{{newslist}}" wx:key="*this" wx:for-item="dayItem"> <view class='time'>{{dayItem.time}}</view> <view class='list' wx:for="{{dayItem.list}}" wx:key="*this" data-id="{{item.id}}" bindtap='linkNews' wx:for-item="item"> {{item.title}} </view> </v

php public function index($type=1)     {         $arr = model('Share')->where(['status'=>1,'group_id'=>$type])->with('group')->field('id,group_id,title,subtitle,image,price,createtime')->order('weigh desc')->paginate(1, false, [             'query' => Request::instance()->param(),//不丢失已存在的url参数         ]);         $this->view->assign('arr', $arr);         $title = '暂无数据';   ?