摘要:
1. 可访问属性 var person={ name:"王瑞睿", age:12 }; //访问器属性,访问器属性不包括数据值,但是包括getter与setter函数,setter is used to change the object`s property value Object.define 阅读全文
摘要:
1,闭包的定义: In computer science, a closure is a function together with a referencing environment for the nonlocal names (free variables) of that function 阅读全文
摘要:
1,mysql 唤醒数据库,mysql -uroot -p11221 2,创建一个数据库: CREATE DATABASE mldn CHARACTER SET UTF8; 也可以写成小写的:create database wang character set utf8; 3,查看所有的数据库:sh 阅读全文
摘要:
1,对字符串的操作:查找字符串中的所有数字字符串 function findnumber(str) { var arr =[]; var tmp=''; for(var i = 0; i < str.length; i++) if(str.charAt(i)<="9" && str.charAt(i 阅读全文