-
## apply 和 call 的区别
ECMAScript 规范给所有函数都定义了 call 与 apply 两个方法,它们的应用非常广泛,它们的作用也是一模一样,只是传参的形式有区别而已。
### apply( )
apply 方法传入两个参数:一个是作为函数上下文的对象,另外一个是作为函数参数所组成的数组。
```javascript
var obj = {
na…
-
## 前言
上传下载在 web 应用中还是比较常见的,无论是图片还是其他文件等。在 Koa 中,有很多中间件可以帮助我们快速的实现功能。
## 文件上传
在前端中上传文件,我们都是通过表单来上传,而上传的文件,在服务器端并不能像普通参数一样通过 `ctx.request.body` 获取。我们可以用 `koa-body` 中间件来处理文件上传,它可以将请求体拼到 `ctx.request…
-
## 前言
最近有人给我的 [Vue2 后台管理系统解决方案](https://github.com/lin-xin/vue-manage-system) 提了 issue ,说执行 npm run build 构建项目的时候极其慢,然后就引起我的注意了。在项目中,引入了比较多的第三方库,导致项目大,而每次修改,都不会去修改到这些库,构建却都要再打包这些库,浪费了不少时间。所以,把这些不常变动的…
-
楼主好,想在同一个标签页面中,通过跳转,可以打开新的页面,不知道这个新页面怎样显示? 新页面覆盖原来的父页面还是覆盖整个界面? 另外,跳转到新页面后,标签又如何显示? 谢谢
-
文档中,对于`biblatex`3.7以上版本,使用以下动态方法:
```tex
\defdoublelangentry{易仕和2013--}{Yi2013--}
```
可以正常输出双语参考文献。
但是,如果`bib`文件中,中文文献的citekey是用英文写的,那么在文末输出参考文献时,会先输出一遍中文,再输出两遍英文,多余了一遍英文,如图。附文件代码、`biblatex`版本。…
-
You may upload the practical 7
Tq
-
Dear Students
you may upload your answer here. TQ
put into one single file in word documents
-
https://ysai.work/2019/11/07/MySQL%E5%AE%89%E8%A3%85/
Win10安装MySQL压缩版和安装版过程
-
You may upload it the practical 6.
-
Dear my fellow students
you may upload your answer here. TQ
put into one single file in word documents
All the best