1. 在宝塔环境下可直接进行安装2. 安装完成后需要进入指定的php环境下进行安装memcached扩展3. 在thinkphp下进行自定义封装Memcached类<?php namespace app\lib\cache; // 封装memcached类 use think\Config; class Memcached { private static $_insta...
<body> <table id="table_data" lay-filter="table_data"></table> <!--定义表格--> <body> <script type="text/javascript"> layui.use(['...
<script type="text/javascript"> layui.use(['jquery'], function () { var $ = layui.jquery; // jQuery // 打开新窗口操作 $(window).one("resize", function...
需求:操作数组中coupon_log单元,如果coupon_log里数组user值等于1时,向该数组新增一个单元并赋值出现的次数"data": [ { "id": 11, "merchant": 2, "title": "100元优惠券"...
function hide_phone($str) { $resstr = substr_replace($str, '****', 3, 4); return $resstr; }