摘要:
前端页面js获取nginx服务器时间在实际开发中,我们通常要使用的是服务器端的时间,而不是本机电脑的时间,在js文件中直接通过new Date()获取的时间是本机电脑的系统时间,获取服务器时间的方法如下:1.修改nginx的配置文件nginx.conf,在对应服务器端口的server路径下直接添加如 阅读全文
摘要:
default.conf server { listen 9784; server_name localhost; client_header_buffer_size 512k; large_client_header_buffers 4 512k; #charset koi8-r; access_ 阅读全文
摘要:
![image](https://img2023.cnblogs.com/blog/759421/202309/759421-20230921143332734-2075372285.png) ![image](https://img2023.cnblogs.com/blog/759421/202309/759421-20230921143402222-1782116544.png) ![imag 阅读全文
摘要:
--autoplay-policy=no-user-gesture-required 阅读全文
摘要:
在electron的渲染进程中导包会发生TypeError: fs.existsSync is not a function node_modules/electron/index.js:6 ``` var pathFile = path.join(__dirname, 'path.txt') if 阅读全文
摘要:
location /{ proxy_pass http://localhost:18080; proxy_set_header User-Agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like 阅读全文
摘要:
使用XwalkView的目的无非是为了提升Android4.4以下版本(非chromium内核)的Html5渲染性能,并且能够使得H5页面在众多定制化的ROM上拥有一致的体验。 当然了,App内置Chromuim内核的缺点也是显而易见的,那就是App的包体积会增大20M左右。但是从hybrid应用开 阅读全文
摘要:
第一步、安装 node.js1、在服务器上 /opt 下创建 node 文件夹,并进入该文件夹mkdir /opt/nodecd /opt/node 2、下载 node.js3、下载的 node.js 放到 /opt/node 文件夹下(可以用 FileZille 工具进行拖拽)4、在 /opt/n 阅读全文