now

    xiaoxiao2022-07-15  141

    now是什么

    马上上线!https://github.com/zeit/now-cli 一个不用部署到服务器就能发布的node模块

    怎么使用now

    https://github.com/zeit/now-cli

    服务端 https://zeit.co/examples/nodejs/

    前端

    为什么需要now

    场景一
    在需要产品或者ui快速确认需求是否符合的时候 https://dist.326765926.now.sh/
    场景二
    在需要https环境调试的时候,(如是否有引用http资源 | 测试service-worker的时候 | 确认是否是由于协议原因导致的bug的时候) <iframe src="http://weshowbest.com" frameborder="0"></iframe> // Mixed Content: The page at 'https://test.326765926.now.sh/16.html' was loaded over HTTPS, but requested an insecure resource 'http://weshowbest.com/'. This request has been blocked; the content must be served over HTTPS.
    场景三
    需要临时服务器的时候

    拓展

    介绍zeit团队 https://github.com/zeit ping通的是 谷歌云服务 https://cloud.google.com/cdn/docs/locations?hl=zh-cn 前端流行,趋势 线上敲代码

    coder.com

    最新回复(0)