摘要: // 监听屏幕 window.addEventListener('orientationchange', function() { let orientation = window.orientation; console.log("orientation", orientation); switc 阅读全文
posted @ 2022-11-27 13:03 sanyekui 阅读(29) 评论(0) 推荐(0) 编辑
摘要: /** 判断手机是ios/安卓 */ var userAgent = navigator.userAgent; var isiOS = !!userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); var isAndroid = userAgent.inde 阅读全文
posted @ 2021-09-27 13:56 sanyekui 阅读(449) 评论(0) 推荐(0) 编辑
摘要: moz-user-select: -moz-none; -moz-user-select: none; -o-user-select:none; -khtml-user-select:none; -webkit-user-select:none; -ms-user-select:none; user 阅读全文
posted @ 2021-06-28 18:19 sanyekui 阅读(98) 评论(0) 推荐(0) 编辑
摘要: project.config.json 里的 checkSiteMap 设为 false 就ok了 阅读全文
posted @ 2021-05-18 16:47 sanyekui 阅读(754) 评论(0) 推荐(0) 编辑
摘要: 因为这里执行的 git ls-remote ssh://git@github. com/nhn/raphael. git 没有可用的主机验证秘钥,导致拉取失败 使用 : git config --global url."https://".insteadOf git:// 转换为http请求 阅读全文
posted @ 2021-05-18 10:22 sanyekui 阅读(12264) 评论(1) 推荐(1) 编辑
摘要: 在JQ中 carvas.getContext('2d'),报错 Uncaught TypeError: canvas.getContext is not a function var canvas = $('canvas'); var context = canvas.getContext('2d' 阅读全文
posted @ 2021-02-01 11:44 sanyekui 阅读(5181) 评论(0) 推荐(1) 编辑
摘要: npm install babel-preset-es2015 --save-dev 阅读全文
posted @ 2021-01-18 09:37 sanyekui 阅读(239) 评论(0) 推荐(0) 编辑
摘要: MySQL 安装、配置 一:下载MySQL 官网地址:https://www.mysql.com/ 官网下载地址: https://dev.mysql.com/downloads/ 选择 MySQL Community Sercer (MySQl社区版) 选择到免安装版 下载完成后解压,路径不能出现 阅读全文
posted @ 2021-01-11 10:56 sanyekui 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 使用 getCurrentPages(); 获取当前页面栈。 数组中第一个元素为首页,最后一个元素为当前页面 Page({ /** * 页面的初始数据 */ data: {}, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { var page 阅读全文
posted @ 2021-01-07 16:13 sanyekui 阅读(1203) 评论(0) 推荐(0) 编辑
摘要: C:\Windows\System32\drivers\etc 域名添加在最下面: ip+域名 阅读全文
posted @ 2020-12-10 18:04 sanyekui 阅读(1027) 评论(0) 推荐(0) 编辑