2021年3月6日

摘要: let p1 = new Person() Person.prototype.isPrototypeOf(p1) // return boolean; Object.getPrototypeOf(p1) // return obj; 阅读全文
posted @ 2021-03-06 16:54 ZKJABLE 阅读(38) 评论(0) 推荐(0) 编辑

2021年3月5日

摘要: function sum(num1, num2){ 2. return num1 + num2; 3.} 4.function callSum1(num1, num2){ 5. return sum.apply(this, arguments); // 传入arguments 对象 6.} 7.fu 阅读全文
posted @ 2021-03-05 22:04 ZKJABLE 阅读(45) 评论(0) 推荐(0) 编辑

2021年2月26日

摘要: 虽然arguments的主要用途是保存函数参数,但这个对象还有一个名叫“callee”的属性,该属性是一个指针,指向拥有这个arguments对象的函数。 function factorial(num){ if(num <= 1){ return 1 }else{ return num * fact 阅读全文
posted @ 2021-02-26 01:15 ZKJABLE 阅读(32) 评论(0) 推荐(0) 编辑

2021年2月16日

摘要: 我说怎么node上运行的结果和浏览器上不一样。 new Date().toLocaleString('zh-CN') 可拿到北京时间 阅读全文
posted @ 2021-02-16 03:56 ZKJABLE 阅读(25) 评论(0) 推荐(0) 编辑

2021年2月11日

摘要: 摘自《JavaScript高级程序设计》5.2.1 //return boolean if(value instanceof Array){} //return boolean if(Array.isArray(value)){} 阅读全文
posted @ 2021-02-11 00:58 ZKJABLE 阅读(39) 评论(0) 推荐(0) 编辑

2020年12月30日

摘要: <form action="" enctype="multipart/form-data" method=""> <!-- 仅限png,jpeg类型 --> <input type="file" name="随便起个名字" accept="image/png, image/jpeg" /> <!-- 阅读全文
posted @ 2020-12-30 16:25 ZKJABLE 阅读(282) 评论(0) 推荐(0) 编辑

2020年12月8日

摘要: yarn npm yarn init npm init yarn npm install yarn global add xxx@xxx npm install -g xxx@xxx yarn add xxx@xxx npm install --save xxx@xxx yarn add xxx@x 阅读全文
posted @ 2020-12-08 22:23 ZKJABLE 阅读(238) 评论(0) 推荐(0) 编辑

2020年9月29日

摘要: https://blog.csdn.net/westhod/article/details/80799266 db,err := sql.Open("mysql","root:root@/forge") if err != nil { panic(err) } rows,err := db.Quer 阅读全文
posted @ 2020-09-29 02:52 ZKJABLE 阅读(3278) 评论(0) 推荐(1) 编辑
摘要: public function children() { return $this->hasMany(get_class($this), 'parent_id' ); } public function allChildren() { return $this->children()->with( 阅读全文
posted @ 2020-09-29 01:30 ZKJABLE 阅读(257) 评论(0) 推荐(0) 编辑

2020年9月21日

摘要: 源码安装php7.4的时候报了这个错,说是缺少sqlite3,可以试着: yum install sqlite-devel 但是试了以后还是报错,是因为版本过低。 于是,去它的官网下载安装包,解压,安装,make && make install 等等。 然后,把旧版本的去掉: mv /usr/bin 阅读全文
posted @ 2020-09-21 00:36 ZKJABLE 阅读(5165) 评论(0) 推荐(0) 编辑

导航