nmsn

Results 78 comments of nmsn

之前一直没找到好的nestjs实践教程,感谢大佬

同样的问题,想要封装在自定义组件中,对外只暴露 html 的字符串,就出现这种情况了

需要注意的是 base64 处理过的过的图片会比原先更大,编码到项目的 htmlcss/js 中,会增加静态文件的体积且 html/css/js 是经常修改的内容,base64 随着这些文件也不好处理缓存

> localhost也叫local ,正确的解释是:本地服务器 > > 127.0.0.1在windows等系统的正确解释是:本机地址(本机服务器) > > 他们的解析通过本机的host文件,windows自动将localhost解析为127.0.0.1 > > localhot(local)是不经网卡传输!这点很重要,它不受网络防火墙和网卡相关的的限制。 > > 127.0.0.1是通过网卡传输,依赖网卡,并受到网络防火墙和网卡相关的限制。 > > 一般设置程序时本地服务用localhost是最好的,localhost不会解析成ip,也不会占用网卡、网络资源。 > > 有时候用localhost可以,但用127.0.0.1就不可以的情况就是在于此。猜想localhost访问时,系统带的本机当前用户的权限去访问,而用ip的时候,等于本机是通过网络再去访问本机,可能涉及到网络用户的权限。 > > 摘录自--https://zhuanlan.zhihu.com/p/26503558 评论中又写到 `127.0.0.1` 也是不进过网卡的

@booxood 我在vuepress中想将gitalk作为评论组件使用也出现了登录报错的问题,能否帮忙解答一下 ![image](https://user-images.githubusercontent.com/23231239/51663379-9f32d980-1ff1-11e9-9541-9becb638b327.png)

@booxood 点击登录 ![image](https://user-images.githubusercontent.com/23231239/51908857-dd6f3500-2405-11e9-8f8e-c107812e0b34.png) 页面链接就会变成 https://nmsn.site/?error=redirect_uri_mismatch&error_description=The%20redirect_uri%20MUST%20match%20the%20registered%20callback%20URL%20for%20this%20application.&error_uri=https%3A%2F%2Fdeveloper.github.com%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-authorization-request-errors%2F%23redirect-uri-mismatch