-
JavaScript apply and call have an in-depth understanding
is mainly a bit of a problem with code execution, so I won t list the use of dealing with apply and call here. The code is as follows. I don t understand it from Code 2. I don t understand even if I look at the ECMAScript standard. I hope I can get a...
-
What is the principle of converting pseudo arrays to true arrays by call and apply?
you can often see the method of converting a pseudo array into a true array on the Internet; similar to
let pretendArr = {0:0,1:1,2:2,length:3};
[].slice.call(pretendArr); [0,1,2]
so why? Why can it be converted to a true array? I hope someone can h...
-
How to self-start the php-fpm service when building a LNMP environment with docker?
in order to facilitate development, we plan to create a LNMP environment based on docker, which makes it much more convenient to change computers or unify the team s development environment.
choreographed a docker-compose.yaml file with nginx, php-fp...
-
XMLHttpRequest: network error 0x2eff. this operation cannot be completed due to error 00002eff.
write the program for uploading files in java. There is no problem with deployment on other servers in Aliyun. but after deployment in the customer s own server room, my visit to the upload page IE11 reports the following error SCRIPT7002: XMLHttpReq...
-
How to use python to bulk distribute native ssh public keys?
when we use the ansible tool, the default is to use ssh for remote control. you need to generate key pairs in a way similar to ssh-keygen-t rsa , and then use the ssh-copy-id command to distribute the public key file to a remote host and enter the pas...
-
The problem of method extraction and invocation in javascript
scenario :
there is an object, and the method foo () is added through the prototype keyword.
var Graph = new Graph();
foo
Graph.prototype.foo = function(){
...
}
fun
Graph.prototype.fun = function(){
...
}
now the logic in the foo ...
-
Centos7shell postgres login failed
Baidu said that there is a problem with the verification method in the file var lib pgsql 9.5 data pg_hba.conf, but the reason for changing the verification method is to use the command psql-U postgres-d mydjango-p 5432-h 127.0.0.1 to log in directl...
-
When getting the list of followers through access_token, it shows that this operation cannot be performed.
what happens when you get a list of followers through access_token after getting access_token and show that this operation cannot be performed?
$url = "https: api.weixin.qq.com cgi-bin token?grant_type=client_credential&appid=$appid&secre...
-
Wechat official account development
when you get the list of followers through access_token after getting access_token, it shows that this operation cannot be performed. ...
-
Autodesk forge, load graphics display black
load the model, the container turns black. at first thought it was my program s problem. But try it with the code of the example, too. is there something wrong with the server? the following is the source code of the example. It used to be possible....
-
Nginx failed to start
prompt as follows:
Starting nginx: nginx: [emerg] "server " directive is not allowed here in etc nginx nginx.conf:17
what is the reason for this? How to solve it?
...
-
Prompt "SSL handshake failed" when connecting to ApacheDS.
CentOS7 installation started ApacheDS successfully, but the connection could not be created successfully using Apache Directory Studio:
The authentication failed
- SSL handshake failed.
org.apache.directory.ldap.client.api.exception.InvalidConnectio...
-
Conflicts between eslint and webstrom formatting
there are some conflicts between eslint rules and webstrom shortcut key formatting
for example:
<Route path=" list" component={TopicList} >,
Under the airbnb specification, there must be a space in front of the of the self-closin...
-
Linux failed to install pm2!
1. Execute npm install-g pm2
2.pm2 pm2 start app.js
pm2
3.ln -s root myapp pm2 usr local bin
still failed to solve the problem
messed up for a long time because no soft connection was created.
ln -s root node-v8.9.0-linux-x64 lib node_...
-
Wechat development tools are automatically refreshed to the home page each time they are saved, which is very inconvenient for development. Is there a solution?
for example, if you are editing on another page, you may just change the css style, be refreshed and jump to the front page, and then have to reopen the edit page. It is troublesome to get used to using Wechat developer tools on ctrl+s,. Is my configurat...
-
Java: the front and rear ends are separated and the back-end (tomcat), is run with IDEA. How are the front-end pages deployed during the development phase?
for testing and production deployment, just throw the front-end page to nginx
but at the time of development, how do you deploy the front-end page?
...
-
About the inaccessibility of the website (https+nginx+dns parsing)
in order to obtain Tencent Cloud s ssl certificate, enter the URL domain name after modifying the non-Wanwang domain name registered by Aliyun.
the website cannot be accessed. Has anyone encountered ?
nginx is normal: [root@iZwz9hbv3lrr68d8bo5dvp...
-
How to customize touch events in html
1. I am working on an app project, and there are many onclick events in the project. I have an idea to use the touch event instead, because there are a lot of things that need to be modified. I wonder if it can be easily implemented, binding an implem...
-
After ckeditor gains focus, a class of cke_focus is added to prevent the keydown event of the enter key from taking effect.
after ckeditor gains focus, the class of cke_focus is added to prevent the keydown event of the enter key from taking effect
here is the code for the keyboard event
$(document).on("keydown","-sharpcomponent_4_0",function(e){
...
-
How to use Generator to implement a chain dependent function?
how do I use generator to achieve the following functions?
function f1(){
return new Promise((resolve,reject) =>{
setTimeout(() =>{
resolve(1);
},1000)
})
}
function f2(valu...