JS function 是函数也是对象, 浅谈原型链 JS 唯一支持的继承方式是通过原型链继承, 理解好原型链非常重要, 我记录下我的理解 1. 前言 new 出来的实例有 _proto_ 属性, 并且指向其构造函数的 prototype 对象 function Person(){} const p ...
分类:
Web程序 时间:
2021-01-05 11:43:54
阅读次数:
0
默认的config #user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/ngi ...
分类:
其他好文 时间:
2021-01-05 11:39:49
阅读次数:
0
安装运行Nginx (1)下载Nginx镜像 docker pull nginx (2)启动Nginx docker run --name nginx -p 80:80 -d nginx 这样就简单的把nginx启动了。 (3)修改配置文件 但是我们想要改变配置文件nginx.conf ,进入容器, ...
分类:
其他好文 时间:
2021-01-05 11:30:17
阅读次数:
0
在nginx配置中添加 location / { try_files $uri $uri/ @router; index index.html; } location @router { rewrite ^.*$ /index.html last; } ...
分类:
其他好文 时间:
2021-01-04 11:32:56
阅读次数:
0
就是一个请求从前台到后台处理的过程需要用到的东西,最少包括以下点:js,html,css,ajax,ajax跨域,跨站脚本,web缓存,web优化,nginx,apache作用,鉴权方式,cookie,session,servlet,filter,基本数据结构,线程池,线程并发,缓存,io等等,知识 ...
分类:
其他好文 时间:
2021-01-04 11:32:05
阅读次数:
0
11.如何从CDN加载jQuery? 下面是从所有3个CDN加载jQuery的代码。 从Google CDN加载jQuery Framework的代码 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/j ...
分类:
编程语言 时间:
2021-01-04 11:26:30
阅读次数:
0
一、案例一 1、实现效果 打开浏览器,在浏览器地址栏输入地址 www.123.com,跳转到 liunx 系统 tomcat 主页面中。 2、准备工作 (1)在 liunx 系统安装 tomcat, 使用默认端口 8080 tomcat 安装文件放到 liunx 系统中,解压 进入 tomcat 的 ...
分类:
其他好文 时间:
2021-01-04 11:18:59
阅读次数:
0
server { listen 80; server_name localhost; rewrite ^(.*)$ https://$host$1 permanent; } server { listen 443 ssl; server_name localhost; proxy_buffering ...
分类:
Web程序 时间:
2021-01-04 11:17:46
阅读次数:
0
<body> <div id="app"> <!-- 3.使用组件 --> <my-cpn></my-cpn> </div> <script src='https://cdn.jsdelivr.net/npm/vue@2.6.12/dist/vue.js'></script> <script> // ...
分类:
其他好文 时间:
2021-01-02 11:06:08
阅读次数:
0
登录Nginx服务器。例如,您可以使用远程登录工具(例如PuTTY、Xshell)登录服务器。执行以下命令,在Nginx安装目录(/usr/local/nginx/conf)下创建一个用于存放证书的目录(命名为cert)。放大查看复制代码cd/usr/local/nginx/conf#进入Nginx默认安装目录。如果您修改过默认安装目录,请根据实际配置进行调整。mkdircert#创建证书目录,命
分类:
其他好文 时间:
2021-01-02 10:33:35
阅读次数:
0