摘要: 错误提示 SQL 错误 [1055] [42000]: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'user.bbs_user.id' which is not f 阅读全文
posted @ 2020-07-22 15:34 PromiseOne 阅读(669) 评论(0) 推荐(0) 编辑
摘要: 1.查询所有数据库 SHOW DATABASES; 2.进入数据库 USE USER;(进入的数据库名称) 3.查看所有表 SHOW TABLES; 4.查看表里面的字段 DESC bbs_user;(查看的表名称) 5.往数据库里面添加数据 INSERT INTO bbs_user(id,user 阅读全文
posted @ 2020-07-22 10:45 PromiseOne 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Apache 1.启动apache服务 我们打开终端,在命令行输入以下命令,启动Apache服务 1 sudo apachectl start 因为sudo是系统管理指令,所以需要输入电脑开机密码(输入字符时不会显示,输入完成敲击回车即可) 2.检查Apache服务是否启动成功 在浏览器输入如下地址 阅读全文
posted @ 2020-07-21 16:53 PromiseOne 阅读(1280) 评论(0) 推荐(0) 编辑
摘要: 1 // 示例urlStr:http://html/index.html?user=admin&pwd=123456 2 3 function getRequest(urlStr) { 4 if (typeof urlStr == "undefined") { 5 var url = decodeU 阅读全文
posted @ 2020-07-14 17:27 PromiseOne 阅读(198) 评论(0) 推荐(0) 编辑
摘要: function toThousands(num) { num = (num || 0).toString(); let number = 0, floatNum = '', intNum = ''; // 判断是否有小数位,有则截取小数点后的数字 if (num.indexOf('.') > 0) 阅读全文
posted @ 2020-07-10 14:35 PromiseOne 阅读(466) 评论(0) 推荐(0) 编辑
摘要: 1 function fnInitScreen() { 2 var html = document.getElementsByTagName("html")[0]; 3 var width = window.innerWidth; 4 var font_size = 0; 5 font_size = 阅读全文
posted @ 2020-06-18 10:16 PromiseOne 阅读(1034) 评论(0) 推荐(0) 编辑
摘要: 添加@clcik.native 阅读全文
posted @ 2020-06-05 11:02 PromiseOne 阅读(230) 评论(0) 推荐(0) 编辑
摘要: let arr = []; let obj = {}; Object.prototype.toString.call(arr) '[object Object]' //判断对象 返回true Object.prototype.toString.call(obj) '[object Array]' / 阅读全文
posted @ 2020-06-04 11:29 PromiseOne 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 1. Vue 无法检测实例被创建时不存在于 data 中的 property 原因:由于 Vue 会在初始化实例时对 property 执行 getter/setter 转化,所以 property 必须在 data 对象上存在才能让 Vue 将它转换为响应式的。 场景: var vm = new 阅读全文
posted @ 2020-06-03 17:09 PromiseOne 阅读(1965) 评论(0) 推荐(0) 编辑
摘要: 1 let arr= ['baidu', 'google', 'taobao']; 2 try{ 3 arr.forEach(item=>{ 4 if(item == 'google'){ 5 throw new Error(); 6 } 7 }) 8 }catch(e){ 9 return; 10 阅读全文
posted @ 2020-06-02 19:05 PromiseOne 阅读(1617) 评论(0) 推荐(0) 编辑