小程序跳转tabbar页面
tap:function(e){ wx.switchTab({ url: e.currentTarget.dataset.url }) },
王明昌博客tap:function(e){ wx.switchTab({ url: e.currentTarget.dataset.url }) },
hover-class='none' <navigator url='../data/data' hover-class='none'>
onShow:function(){ this.onLoad() },
input 输入大于1的数(可以是整数或小数)oninput 和正则 <input type="number" oninput="this.value=this.value.replace(/[^1-9\.]/g,'');" //用的...

if (isset($GLOBALS['HTTP_RAW_POST_DATA'])) { $userinfo1 = $GLOBALS['HTTP_RAW_POST_DATA']; } else { $userinfo1 = file_get...
<?php //使用use传入参数 $name = 'thinkphp'; $id = 10; Db::table('think_user')->where(function ($query) use($name, $id) {...
index.html <!DOCTYPE html> <html> <head> <title></title> </head> <body> </b...
代码片段 https://developers.weixin.qq.com/s/UK4cwtmF706h
public function cp_list() { if ($this->request->isAjax()) { $map = []; $keyword = $this->request->param('key...
在php中自带了大量了数组排序函数,下面我们一一来介绍一下关于php数组排序的用法吧。 sort() 函数用于对数组单元从低到高进行排序。 rsort() 函数用于对数组单元从高到低进行排序。 asort() 函数用于对数组单元...