2020年4月

2020年4月,百度首页出现广告了,去除办法:把浏览器百度网站的Cookies清除掉。在浏览百度首页,还原到没广告的页面了。

var a = new cc.Rect(0, 0, 10, 10);
var b = new cc.Vec2(0, 5);
a.contains(b);// true
// 全局坐标转换为局部坐标
let npos = this.anode.convertToNodeSpaceAR(gpos);
// 局部坐标转换为全局坐标,前面要为anode的父节点
let gpos = this.aParentNode.convertToWorldSpaceAR(this.anode.position);

    let burl = "body/" + 1000;
        cc.loader.loadRes(burl+".json", cc.JsonAsset, (error: Error, res: cc.JsonAsset) => {
            var bodyData = res.json;
            cc.log('json:', bodyData);
            cc.loader.loadRes(burl + ".png", cc.Texture2D, (error: Error, tex: cc.Texture2D) => {
                cc.log('tex', tex);
            });
        });

php的框架Hyperf 是基于 Swoole 4.4+ 实现的高性能、高灵活性的 PHP 协程框架。
开发的话,可以用sublime的sftp,写完自动上传到开发服务器上。这样调试方便,不然win下怎么搞都流程麻烦。

- 阅读剩余部分 -

国内一般都用centos7.6,国外用Ubuntu,因为下载速度,习惯的原因,默认这样。

2025更新年最新方法:
CentOS + Nginx 自动续期SLL
https://xigk.com/blog/index.php/archives/1557/

2020年写的:
Let’s Encrypt:https://letsencrypt.org/
Let’s Encrypt is a free, automated, and open Certificate Authority.
key:wss,https,ssl

第一种方法

用 acme.sh申请来自动续期ssl证书
acme说明:https://github.com/Neilpang/acme.sh/wiki/说明
https://www.cnblogs.com/esofar/p/9291685.html

- 阅读剩余部分 -