摘要: 地图json获取地址:http://datav.aliyun.com/tools/atlas/#&lat=31.80289258670676&lng=104.32617187499999&zoom=4 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 < 阅读全文
posted @ 2020-09-08 15:39 PromiseOne 阅读(1815) 评论(0) 推荐(0)
摘要: 1 //1.连接数据库 2 $link = mysqli_connect('localhost','root','root'); 3 //var_dump($link); 4 5 //2.判断是否连接成功 6 if(!$link){ 7 exit("数据库连接失败!"); 8 }; 9 10 //3 阅读全文
posted @ 2020-07-23 16:28 PromiseOne 阅读(204) 评论(0) 推荐(0)
摘要: 错误提示 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 阅读(766) 评论(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 阅读(184) 评论(0) 推荐(0)
摘要: Apache 1.启动apache服务 我们打开终端,在命令行输入以下命令,启动Apache服务 1 sudo apachectl start 因为sudo是系统管理指令,所以需要输入电脑开机密码(输入字符时不会显示,输入完成敲击回车即可) 2.检查Apache服务是否启动成功 在浏览器输入如下地址 阅读全文
posted @ 2020-07-21 16:53 PromiseOne 阅读(1347) 评论(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 阅读(210) 评论(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 阅读(507) 评论(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 阅读(1084) 评论(0) 推荐(0)
摘要: 添加@clcik.native 阅读全文
posted @ 2020-06-05 11:02 PromiseOne 阅读(241) 评论(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 阅读(343) 评论(0) 推荐(0)