会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ZKJABLE
上一页
1
2
3
4
下一页
2021年3月6日
6.2.3 原型模式 2个重要方法
摘要: let p1 = new Person() Person.prototype.isPrototypeOf(p1) // return boolean; Object.getPrototypeOf(p1) // return obj;
阅读全文
posted @ 2021-03-06 16:54 ZKJABLE
阅读(44)
评论(0)
推荐(0)
2021年3月5日
5.5.5 apply,call
摘要: 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
阅读(49)
评论(0)
推荐(0)
2021年2月26日
5.5.4 arguments
摘要: 虽然arguments的主要用途是保存函数参数,但这个对象还有一个名叫“callee”的属性,该属性是一个指针,指向拥有这个arguments对象的函数。 function factorial(num){ if(num <= 1){ return 1 }else{ return num * fact
阅读全文
posted @ 2021-02-26 01:15 ZKJABLE
阅读(36)
评论(0)
推荐(0)
2021年2月16日
node 拿北京时间
摘要: 我说怎么node上运行的结果和浏览器上不一样。 new Date().toLocaleString('zh-CN') 可拿到北京时间
阅读全文
posted @ 2021-02-16 03:56 ZKJABLE
阅读(36)
评论(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
阅读(44)
评论(0)
推荐(0)
2020年12月30日
input 限制 上传/接收 文件的格式
摘要: <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
阅读(299)
评论(0)
推荐(0)
2020年12月8日
yarn基础语法,对比npm
摘要: 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
阅读(245)
评论(0)
推荐(0)
2020年9月29日
go语言 panic: sql: expected 10 destination arguments in Scan, not 2
摘要: 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
阅读(3680)
评论(0)
推荐(1)
laravel 无限极分类骚操作
摘要: 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
阅读(268)
评论(0)
推荐(0)
2020年9月21日
php7 No package 'sqlite3' found
摘要: 源码安装php7.4的时候报了这个错,说是缺少sqlite3,可以试着: yum install sqlite-devel 但是试了以后还是报错,是因为版本过低。 于是,去它的官网下载安装包,解压,安装,make && make install 等等。 然后,把旧版本的去掉: mv /usr/bin
阅读全文
posted @ 2020-09-21 00:36 ZKJABLE
阅读(5326)
评论(0)
推荐(0)
上一页
1
2
3
4
下一页
导航
博客园
首页
新随笔
联系
订阅
管理
公告