上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 30 下一页
摘要: 1. 获取Get请求中url的参数: const urlib = require("url"); // http:///www.web.com/Login?name=111&pass=222 router.get('/Login', function(req, res, next) { var myObj = urlib.parse(req.url,true); var... 阅读全文
posted @ 2020-10-18 15:28 opencoder 阅读(2342) 评论(0) 推荐(0)
摘要: 1. 生成自签名证书文件: openssl req -nodes -new -x509 -keyout server.key -out server.cert 2. 在Express开启HTTPS支持, 添加一下类似代码: var express = require('express') var fs = require('fs') var https = require('https') var... 阅读全文
posted @ 2020-10-18 15:08 opencoder 阅读(2323) 评论(0) 推荐(0)
摘要: 1. 安装 silly-datetime 模块: npm i silly-datetime --save 2. 使用的示例代码: var sd = require('silly-datetime'); // silly-datetime 当前时间格式化 console.log(sd.format(new Date(), 'YYYY-MM-DD HH:mm')); // 2019-10-28 1... 阅读全文
posted @ 2020-10-18 14:56 opencoder 阅读(15410) 评论(0) 推荐(0)
摘要: 1. 安装配置NodeJS。 2. 安装Express: >npm install express --save –g ## 全局安装express >npm install express-generator --save –g ## 全局安装express-generator 3. 开始第一个NodeJS+Express项目1) 打开命令行,输入... 阅读全文
posted @ 2020-10-18 14:46 opencoder 阅读(284) 评论(0) 推荐(0)
摘要: Unity Editor Error :Invalid AABB aInvalid AABB aabbInvalid AABB rkBoxThe above errors caused by Nan value exists in transform properies like: position, rotation or scale. This may come from division b... 阅读全文
posted @ 2020-07-23 16:22 opencoder 阅读(1858) 评论(0) 推荐(0)
摘要: 1) 添加一张图片,但是不显示出来 2) 把图片嵌入到表格中 3) 在新窗口中打开链接 阅读全文
posted @ 2020-07-01 10:58 opencoder 阅读(112) 评论(0) 推荐(0)
摘要: 一、原理Beyond Compare每次启动后会先检查注册信息,试用期到期后就不能继续使用。解决方法是在启动前,先删除注册信息,然后再启动,这样就可以永久免费试用了。 二、下载首先下载Beyond Compare最新版本,链接如下:https://www.scootersoftware.com/download.php 三、安装下载完成后,直接安装。 四、创建BCompare文件1.进入Mac应... 阅读全文
posted @ 2020-06-01 13:41 opencoder 阅读(8855) 评论(3) 推荐(3)
摘要: 升级Xcode之后,编译之前的代码,出现Cannot create __weak reference in file using manual reference counting解决方法: 在Build Settings--------->Aplle LLVM9.0 - Language - Objectibe-C------------->Weak Reference In Manual Re... 阅读全文
posted @ 2020-05-30 18:25 opencoder 阅读(943) 评论(0) 推荐(0)
摘要: 1、配置静态IP地址: # vim /etc/network/interfaces 原内容有如下4行: auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp 以上表示默认使用DHCP分配IP,修改为如下: auto lo iface lo inet loopback # The primary network interf... 阅读全文
posted @ 2020-05-27 17:50 opencoder 阅读(272) 评论(0) 推荐(0)
摘要: 从 CPAN https://metacpan.org/release/JSON 下载 JSON.tar.gz , 然后就开始安装: $ tar xvfz JSON-2.53.tar.gz $ cd JSON-2.53 $ perl Makefile.PL $ make $ make install Ref: https://www.yiibai.com/html/json/2013/090... 阅读全文
posted @ 2020-04-21 18:44 opencoder 阅读(3634) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 30 下一页