分类 JS 下的文章

centos nodejs upgrade

# sudo model
# remove old
cd /etc/yum.repos.d/
rm nodesource-*.repo
yum remove nodejs
# install new
# change setup_8.x to your version
curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -
yum clean all
yum -y install nodejs

request aborted

The error Error: request aborted is somewhat expected, as that error is from Node.js telling us that the TCP socket has closed before we finished reading the request. This does not mean that request is too large, though. The most common causes for this:

  1. User is submitting a form and closes the web browser/browser tab.
  2. User is uploading using a command line tool like cURL and presses Ctrl+C to kill the process.
  3. Some network issue that kills the TCP connection.

可用的解决方案:

使用nginx做反向代理提供服务

nginx

From github

jquery iframe

How to access the content of an iframe with jQuery?

$("#myiframe").contents().find("#myContent")

破解 Dash 2.2.4

  1. Dash

Dash gives your Mac instant offline access to 150+ API documentation sets.

Dash is an API Documentation Browser and Code Snippet Manager. Dash stores snippets of code and instantly searches offline documentation sets for 150+ APIs (for a full list, see below). You can even generate your own docsets or request docsets to be included.

破解 Dash 2.2.4 下载