会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
样子2018
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
13
14
15
16
17
18
19
20
21
···
52
下一页
2021年12月8日
Js 之禁止浏览器审查元素
摘要: 一、代码 (function () { 'use strict' var devtools = { open: false, orientation: null } var threshold = 160 var emitEvent = function (state, orientation) {
阅读全文
posted @ 2021-12-08 13:09 样子2018
阅读(434)
评论(0)
推荐(0)
2021年11月19日
Vue 之自定义编译生成目录名称等
摘要: 在vue项目根目录下创建vue.config.js文件,如果不是在网站根目录下,设置publicPath。 module.exports = { publicPath: './', assetsDir: 'static', outputDir: 'dist' }
阅读全文
posted @ 2021-11-19 10:30 样子2018
阅读(371)
评论(0)
推荐(0)
2021年11月13日
Vue 之vue-router + vue-resource + vuex
摘要: npm install vue-router --save npm install vue-resource --save npm install vuex --save 一、代码 import Vue from 'vue' import App from './App.vue' import Vu
阅读全文
posted @ 2021-11-13 11:20 样子2018
阅读(40)
评论(0)
推荐(0)
2021年11月11日
PHP 之判断是否为移动端
摘要: /** * 判断是否是手机 * @return bool */ function is_mobile() { $agent = strtolower($_SERVER['HTTP_USER_AGENT']); $is_pc = (strpos($agent, 'windows nt')) ? tru
阅读全文
posted @ 2021-11-11 10:30 样子2018
阅读(252)
评论(0)
推荐(0)
2021年9月27日
企业微信 之员工报餐
摘要: 一、效果图
阅读全文
posted @ 2021-09-27 10:55 样子2018
阅读(780)
评论(0)
推荐(0)
PHP 之tp5导出到Excel并下载
摘要: 一、代码 public function export($month) { $year = date("Y", time()); //要导出的数据 $data =array(); $day_number = date("t", strtotime($year."-".$month)); vendor
阅读全文
posted @ 2021-09-27 09:32 样子2018
阅读(260)
评论(0)
推荐(0)
2021年9月14日
小程序 之安全问题考虑
摘要: 一、接口安全 所谓接口安全,就是你请求数据地址不能随便访问,可以做Token验证。 参考:https://www.cnblogs.com/yang-2018/p/14889519.html 二、数据安全 所谓数据安全,就是不能被别人抓包直接看到透明数据,可以在后端对数据加密,然后在小程序把数据解密出
阅读全文
posted @ 2021-09-14 09:21 样子2018
阅读(259)
评论(0)
推荐(0)
2021年9月13日
PHP 之上传网络图片到微信临时素材
摘要: 一、简单代码 $fileImage = 'https://域名/202109/11/134923278422.png'; $imgPathInfo =pathinfo($fileImage); $basename = $imgPathInfo['filename'].'png'; $filename
阅读全文
posted @ 2021-09-13 09:11 样子2018
阅读(632)
评论(0)
推荐(0)
2021年9月7日
企业微信 之快捷回复项目
摘要: 开发文档:https://open.work.weixin.qq.com/api/doc/90000/90135/90664 一、效果图 二、开发流程 1、创建应用 2、配置应用 三、简单代码 1、授权登录 2、回调 helper.php /** * GET 请求 * @param string $
阅读全文
posted @ 2021-09-07 11:22 样子2018
阅读(409)
评论(0)
推荐(0)
2021年8月12日
Js 之TreeGrid使用
摘要: 一、效果图 二、代码 <div class="col-lg-12"> <div class="card"> <div class="card-header"> <h4>TreeGrid使用</h4> </div> <div class="card-body"> <div id="toolbar2"
阅读全文
posted @ 2021-08-12 14:23 样子2018
阅读(863)
评论(0)
推荐(0)
上一页
1
···
13
14
15
16
17
18
19
20
21
···
52
下一页
公告