摘要:
javascript 使用fetch进行跨域请求时默认是不带cookie的,所以会造成 session失效。 会报错: A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when the credent 阅读全文
摘要:
判断一个变量是否申明 if (typeof v "undefined") { // ... } 判断一个变量是否是函数 function f() {} typeof f // "function" 区别一个变量是数组还是对象 var o = {}; var a = []; o instanceof 阅读全文
摘要:
创建数据库 CREATE DATABASE `test2` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci # 授予用户通过外网IP对于该数据库的全部权限 grant all privileges on woman_test.* to 'root 阅读全文