转载 | 查看80端口是否被占用
https://jingyan.baidu.com/article/93f9803f5d94abe0e46f55c5.html
王明昌博客https://jingyan.baidu.com/article/93f9803f5d94abe0e46f55c5.html
获取异步回调的信息,可通过写入日志的方法获取信息 下面是写入日志的方法 /** * @param string,array $data 需要输出到日志中的数据 * @return null */ function logOutput($da...
//属性层 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"
使用wxs当(过滤器)函数方法使用: util/filter.wxs 定义 //定义 var format=function(text){ if(!text){ return } var reg = getRegExp('\\\\n','g...
// components/epsoide/index.js Component({ /** * 组件的属性列表 */ properties: { index:{ type:String, //观察者模式 属性值被更改时的响应函数 obse...