
wordpress插件制作 飘花插件
1. 检查插件名是否存在 https://wordpress.org/plugins/search/插件名 leave_flower 2.插件基本属性 leave_flower_copyright.php <?php /* Plugi...
1. 检查插件名是否存在 https://wordpress.org/plugins/search/插件名 leave_flower 2.插件基本属性 leave_flower_copyright.php <?php /* Plugi...
<div class="layui-inline"> <label class="layui-form-label">控制器</label> <div class="layui-input-inli...
方法 /** *获取某个目录下的php文件名的函数 */ function getControllers($dir) { $pathList = glob($dir . '/*.php'); $res = []; foreach($path...
HTML: <select lay-filter="test"></select> JS: var form = layui.form(); form.on('select(test)', function(data...
//属性层 util/http.js //基本属性 config.js ``` const config={ api_base_url:"http://www.wangmingchang.com/v1/", appkey:"T*******...
import {HTTP} from '../util/http.js'; class classicModel extends HTTP{ getLatest(sCallback){ this.request({ url: 'classi...
Component({ /** * 组件的属性列表 */ options:{ // 启用多插槽 multipleSlots:true }, properties: { text:String }, }) //定义 <view clas...
// components/like/index.js Component({ /** * 组件的属性列表 */ properties: { like:{ type:Boolean//默认false }, count:{ type:Numb...
//定义 js // components/book/index.js Component({ /** * 组件的属性列表 */ properties: { book:Object }, /** * 组件的初始数据 */ data: { }...
定义 common.wxss 引用 @import "../common.wxss"