摘要:
// 获取浏览器 宽高 var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth var height = window.innerHeight || docu 阅读全文
posted @ 2019-12-19 18:17
GetcharZp
阅读(243)
评论(0)
推荐(0)
摘要:
原因: 可能原因一: 直接通过表工具导出的数据表结构中没有指明主键 修改方式: 在对应的表的小括号内添加 PRIMARY KEY (`主键ID`) 可能原因二: 直接通过表工具导出的数据表结构中没有指明主键自增 修改方式: 将对应的主键设置为自增长 AUTO_INCREMENT 可能原因三: 在表名 阅读全文
posted @ 2019-12-19 15:25
GetcharZp
阅读(272)
评论(0)
推荐(0)
摘要:
// 1、数组拼接 concat() var a = [1, 2]; var b = [3, 4]; console.log(a.concat(b)); // [1, 2, 3, 4] // 2、数组翻转 reverse() var a = [1, 2, 3]; console.log(a.reve 阅读全文
posted @ 2019-12-19 11:52
GetcharZp
阅读(256)
评论(0)
推荐(0)
摘要:
// 函数声明方法一 function f (a, b) { return a + b; } // 函数调用 console.log(f(1, 4)); // 5 // 函数声明方法二 var num = function(a, b) { return a + b; } console.log(nu 阅读全文
posted @ 2019-12-19 11:05
GetcharZp
阅读(145)
评论(0)
推荐(0)
摘要:
// 1、for循环 for (var i = 0; i <= 10; ++ i) { console.log(i); } // 2、while循环 var i = 0; while (i <= 10) { console.log(i); ++ i; } 阅读全文
posted @ 2019-12-19 10:45
GetcharZp
阅读(234)
评论(0)
推荐(0)
摘要:
// 1、if...else if (true) { console.log("TRUE1"); } else { console.log("TRUE2"); } // 2、if...else if...else if (true) { console.log("TRUE1"); } else if 阅读全文
posted @ 2019-12-19 10:41
GetcharZp
阅读(373)
评论(0)
推荐(0)
摘要:
人人商城返回Json格式的数据 1、找到该插件对应的 core/mobile 路径 2、新建一个 api.php 文件 <?php header('Content-Type:application/json; charset=utf-8'); if (!defined('IN_IA')) { exi 阅读全文
posted @ 2019-12-19 10:40
GetcharZp
阅读(613)
评论(0)
推荐(0)
摘要:
// 1、Boolean() console.log(Boolean(123)); // true console.log(Boolean(undefined)); // false console.log(Boolean("false")); // true // 2、流程控制自动转化 var c 阅读全文
posted @ 2019-12-19 09:32
GetcharZp
阅读(343)
评论(0)
推荐(0)
摘要:
// 1、Number() var num1 = Number(true); console.log(num1); // 1 var num2 = Number(" ") console.log(num2); // 0 // 2、parseInt() var num1 = parseInt("12. 阅读全文
posted @ 2019-12-19 09:28
GetcharZp
阅读(4109)
评论(0)
推荐(0)
摘要:
// 1、 toString() var num = 8; var numString = num.toString(); console.log(numString); var result = true; var resultString = result.toString(); console 阅读全文
posted @ 2019-12-19 09:20
GetcharZp
阅读(8061)
评论(0)
推荐(0)

浙公网安备 33010602011771号