摘要:
$rec_code = Func::createInviteCode(); $r = true; while($r) { // 艹,语法错误导致,无限循环中,接口走不下去了 // $r = $user->where("rec_code",$rec_code)->find(); $r = $user- 阅读全文
摘要:
//eg1 layer.confirm('纳尼?', { btn: ['按钮一', '按钮二', '按钮三'] //可以无限个按钮 ,btn3: function(index, layero){ //按钮【按钮三】的回调 } }, function(index, layero){ //按钮【按钮一】 阅读全文
摘要:
$ select-editor Select an editor. To change later, run 'select-editor'. 1. /bin/ed 2. /bin/nano < easiest 3. /usr/bin/code 4. /usr/bin/vim.basic 5. /u 阅读全文
摘要:
sudo git --git-dir=".git" pull origin master 等同于 sudo git pull origin master 也可以重命名.git sudo git --git-dir=".antgit" pull origin master 阅读全文
摘要:
点击指向的那个图标。 用了大半年,终于知道了这个技巧。 阅读全文
摘要:
$order_item = M('order_item'); $order_item_list = $order_item->field(['*','sum(num) as num'])->group('sku_id')->order('num desc')->limit(10)->select() 阅读全文
摘要:
<?php /** * Excel 助手 * sudo composer require phpoffice/phpspreadsheet */ namespace Common\Util; use PhpOffice\PhpSpreadsheet\Spreadsheet; use PhpOffic 阅读全文
摘要:
<?php $host = '127.0.0.1'; $user = 'root'; $pwd = '123456'; $dbname = 'test'; // sql $sql = "delete from user where id=1;"; try { // 连接数据库 $conn = new 阅读全文
摘要:
<?php /** * User: Eden * Date: 2019/3/21 * 共有内容 */ namespace Common\Util; use Vendor\Func\Http; class WxUtil extends CommonUtil { public function __co 阅读全文
摘要:
<?php /** * User: Eden */ namespace Common\Util; use Vendor\Func\Http; class ExpressUtil extends CommonUtil { public function __construct() { parent:: 阅读全文
摘要:
$('.required').each(function () { // 判断是否有子SPU var selected = $('#sub_spu').children('option:selected').val(); if (selected == 0) { if ($(this).hasCla 阅读全文
摘要:
$tel = '0527-4566126'; $search = '/^(1(([356][0-9])|(47)|[8][0-9]|[7][0-9]|[9][0-9]))\d{8}$|^0[0-9]{2,3}[-]?\d{7,8}$/'; if (preg_match($search, $tel)) 阅读全文
摘要:
// 过滤重复数组 function array_uniq(input_arr) { // 判断规格是否重复 var h={}; //定义一个hash表 var arr=[]; //定义一个临时数组 for(var i = 0; i < input_arr.length; i++){ //循环遍历当 阅读全文
摘要:
window.location.href='download_file?text=' + encodeURIComponent(text) + '&voice=' + voice + '&speech_rate=' + speech_rate; if (!$text = trim($_REQUEST 阅读全文
摘要:
public function downFile($url, $file_name) { header('Content-Description: File Transfer'); header('Content-Type: application/vnd.android.package-archi 阅读全文
摘要:
先安装sdk composer require alibabacloud/sdk 需要知道 AccessKeyID,AccessKeySecret <?php /** * composer require alibabacloud/sdk * 获取阿里云相关的token */ namespace C 阅读全文