-
5种方式实现值交换
1. var temp = a; a = b; b = temp; (传统,但需要借助临时变量)
2. a ^= b; b ^= a; a ^= b; (需要两个整数)
3. b = [a, a = b][0] (借助数组)
4. [a, b] = [b, a]; (ES6,解构赋值)
5. a = a + b; b = a - b; a = a - b; (小学奥赛…
-
页面:https://blog.shenzjd.com/pages/3e4cf4b7f3da1/
-
## Bug report
### Describe the bug
Not sure if this is a bug but please let me know. I am getting failed install on sharp module due to unable to get local issuer certificate. See additional c…
-
## Bug report
When I try to install Strapi v4 from fresh (I've tried with node 12/14/16) with `npx create-strapi-app@latest my-project --quickstart` I get the following error:
```
error /User…
-
## Bug report
### Required System information
- Node.js version: v16.14.2
- ~~NPM~~ yarn version: 3.1.1
- Strapi version: 4.3.4
- Database: Default, SQLite I guess
- Operating system: …
-
`Using strapi 3.0.6
No project found at /srv/app. Creating a new strapi project
Creating a new Strapi application at /srv/app.
Creating a project from the database CLI arguments.
Creating files.…
-
Hi, I am building an enterprise app and looking for ways to speed up the development period and it looks like Strapi might be a solution. I've read some good reviews about it and I decided/excited to…
-
## Bug report
### Describe the bug
Error when creating a new strapi project.
### Steps to reproduce the behavior
1. Install strapi globaly
2. Create a project using this command `strapi …
-
Error while installing dependencies:
warning strapi > boom@7.3.0: This module has moved and is now available at @hapi/boom. Please update your dependencies as this version is no longer maintained an …
-
0 info it worked if it ends with ok
1 verbose cli [ 'F:\\nodejs\\node.exe',
1 verbose cli 'F:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'dev' ]
2 info…