摘要:
mysql -u root -p mysql> show variables like 'port'; + + + | Variable_name | Value | + + + | port | 3306 | + + + 1 row in set (0.00 sec) 阅读全文
摘要:
<a class="input-file input-fileup" href="javascript:;"> + 选择文件<input size="100" type="file" @change="uploadFile"> </a> function uploadFile(event) { co 阅读全文
摘要:
xm-select.js的下载地址:https://gitee.com/maplemei/xm-select/tree/master/dist 引入xm-select.js <script src="/static/tools/pear/component/pear/xm-select.js"></ 阅读全文
摘要:
安装swiper npm install swiper@4 --save -dev npm install vue-awesome-swiper@3 --save-dev 使用swiper <template> <div class="swiper-container"> <swiper :opti 阅读全文
摘要:
1.下载安装FPDF,可以在官网上下载(http://www.fpdf.org/),下载压缩包后解压,解压后的文件夹命名为“fpdf”。 2.创建一个php文件和“fpdf”平级,代码如下 <?php require('fpdf/fpdf.php'); $pdf = new FPDF(); $pdf 阅读全文
摘要:
1. 生成二维码: 生成二维码比较简单的方法是直接使用phpqrcode程序包(可在网上下载得到)。 若想获得ThinkPHP支持,需将程序包放在ThinkPHP/Extend/Vendor目录下,让后在程序中引用,代码如下: vendor("phpqrcode.phpqrcode"); //要生成 阅读全文
摘要:
最近的项目用到了mqtt,我想了想,还是记下来吧,毕竟我也废了很长的时间在这个上面,首先是uniapp中使用mqtt,查阅了一些资料,前辈们都说使用3.0.0版本,于是我就下载了3.0.0版本的来使用 npm install mqtt@3.0.0 在mqtt连接之前要先引入 import mqtt 阅读全文
摘要:
最近用uniapp开发一个类似于微信聊天功能的手机端软件,在进入聊天页面时要求页面滚动到最底部,刚开始使用了下面的代码: uni.createSelectorQuery().select("自己的容器.box").boundingClientRect((res)=>{ console.log(res 阅读全文