摘要: 阅读全文
posted @ 2018-12-17 09:31 freeengles 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 当服务器创建一个内部临时表的时候(无论是内存表或磁盘表),会增加 Created_tmp_tables 状态变量的值。 如果服务器创建一个磁盘临时表(直接建立或者从内存表转换)会增加 Created_tmp_disk_tables 状态变量的值。 通过 show global status like 阅读全文
posted @ 2018-12-16 11:41 freeengles 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 背景:由于在docker 下载的镜像,发现存入的数据中文都是乱码,所以需要更改数据库的字符集。 [mysqld] character_set_server=utf8init_connect='SET NAME utf8' [client]default-character-set=utf8 阅读全文
posted @ 2018-12-16 11:37 freeengles 阅读(679) 评论(0) 推荐(0) 编辑
摘要: var arr= [1,2,3,4]console.log(typeof(arr))console.log(arr[0])for (var i = 0; i < arr.length;i++){console.log("arr[%d] = %d",i,arr[i])}//数值查找数组的位置var res = arr.indexof(4)============数组创建===============... 阅读全文
posted @ 2018-12-13 22:53 freeengles 阅读(164) 评论(0) 推荐(0) 编辑
摘要: var num = 10function func() { var num1 =20 num =20 console.log("num1 ="+ num1)}func()console.log ("num = "+ num) function func (){ var num = 20 p =30 阅读全文
posted @ 2018-12-13 22:29 freeengles 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 1.函数的定义后要调用才能使用2.在函数里边没有用var定义默认全局变量 函数 function myconsole(){ console.log("sunck is a good man!")}myconsole() function myconsole(num1,num2){ console.l 阅读全文
posted @ 2018-12-09 22:47 freeengles 阅读(179) 评论(0) 推荐(0) 编辑
摘要: if () {} else if (){} else {} switch (){ case 标号1: 语句1 case 标号2: 语句2 default: 语句f } while while (){} 先执行do 在运算表达式 do { 语句 }while(表达式){} for (语句1;表达式;语 阅读全文
posted @ 2018-12-03 22:40 freeengles 阅读(165) 评论(0) 推荐(0) 编辑
摘要: console.log(1 == 1)console.log(1 =='1')//绝对相等类型数值相等console.log(1 "1")三木运算表达式表达式? 表达式1 :表达式2如果表达式是真,返回表达式1,如果假返回表达式2console.log(1?2:3) 逻辑运算符//and or no 阅读全文
posted @ 2018-12-03 22:09 freeengles 阅读(143) 评论(0) 推荐(0) 编辑
摘要: var num = parseInt(prompt())if (num % 2 == 0) { console.log("偶数")} else { console.log("基数")} 阅读全文
posted @ 2018-11-29 22:37 freeengles 阅读(346) 评论(0) 推荐(0) 编辑
摘要: /** * Created by Jeco on 2018/11/27. */var aa = 'a'console.log(typeof (a))console.log(a)var num1 =10;var num2=10;var sum = num1 + num2 ;//把sum自动转换成字符串做拼接console.log("sum =" +sum)===================... 阅读全文
posted @ 2018-11-28 22:41 freeengles 阅读(207) 评论(0) 推荐(0) 编辑