摘要: 1、原生的.php文件: test.php 2、拿去直接用,放在/目录下即可。 公众号服务器地址URL: https://m.****.com/test.php token:weixin 阅读全文
posted @ 2017-07-25 11:28 PHP急先锋 阅读(1375) 评论(0) 推荐(0)
摘要: 1、在TP3.2里面,写一个控制器,用来校验微信公众号||小程序的服务器地址 2、服务器地址URL: token:x** 阅读全文
posted @ 2017-07-25 11:25 PHP急先锋 阅读(672) 评论(0) 推荐(0)
摘要: 问题图: 问题原因: <scroll-view class="scroll-container" upper-threshold="{{sortPanelDist}}" scroll-y="true" style="height:{{scrollHeight}}px;" bindscrolltolo 阅读全文
posted @ 2017-07-21 11:50 PHP急先锋 阅读(9264) 评论(0) 推荐(0)
摘要: 微信小程序删除处理 没有 confrim 那怎么实现这个效果呢 可以使用小程序里的模态框 代码: wxml: js: 效果: 这样就实现js的confirm效果了。 阅读全文
posted @ 2017-07-17 09:40 PHP急先锋 阅读(4290) 评论(0) 推荐(0)
摘要: 1、理论核心:传参-》pid,评论父id需要在wxml页面传递;小程序端和WEB端不同核心:前者操纵数据,后者操纵DOM元素对象 2、不废话,直接代码:wxml 3、js: 4、后台PHP代码:都是一些很常规的增删改查操作,就不贴了。 阅读全文
posted @ 2017-07-14 16:23 PHP急先锋 阅读(3797) 评论(1) 推荐(0)
摘要: 1、wxml 2、js 阅读全文
posted @ 2017-07-14 12:11 PHP急先锋 阅读(50226) 评论(0) 推荐(2)
摘要: 1、条件都是int类型: $User->where('type=1 AND status=1')->select(); 2、条件包含字符串类型: 使用3.1以上版本的话,使用字符串条件的时候,建议配合预处理机制,确保更加安全, 或者: 3、数组条件: 4、表达式查询:比如大于,小于,不等于等 阅读全文
posted @ 2017-07-14 10:26 PHP急先锋 阅读(14454) 评论(0) 推荐(1)
摘要: wxml模板:(数据一维数组) wxml模板:(数据二维数组) 阅读全文
posted @ 2017-07-12 11:34 PHP急先锋 阅读(4009) 评论(0) 推荐(1)
摘要: PHP代码: 阅读全文
posted @ 2017-07-11 17:21 PHP急先锋 阅读(1487) 评论(0) 推荐(1)
摘要: 一、json_encode() 1 2 3 4 <?php $arr = array ('a'=>1,'b'=>2,'c'=>3,'d'=>4,'e'=>5); echo json_encode($arr); ?> 1 2 3 4 <?php $arr = array ('a'=>1,'b'=>2, 阅读全文
posted @ 2017-07-07 15:15 PHP急先锋 阅读(365) 评论(0) 推荐(0)