Conversation
Contributor
|
这个是资源寻址的地方啊,跟域名有啥关系? |
Author
|
@xiangshouding ,'//abc.com/xxx' 这个被当做普通路径处理了 经过fis3发布会变成: <script src="/cde.com/script/main.js"></script>实际上应该保持 <script src="//cde.com/script/main.js"></script>才对 |
Author
|
@xiangshouding ‘//cde.com/script/main.js’是省略协议头的一种写法,表示和当前页面保持一样的协议,比如访问:'http://abc.com/index.html' 那么‘//cde.com/script/main.js’ 就等价于 ‘http://cde.com/script/main.js’ |
Contributor
|
这是两码事儿,本身系统自带 CDN 的能力,你只关心你的代码就可以了。 如果你非得把路径本身强加太多的概念在里面,那么工具做起来就太臃肿了。 |
Author
|
@xiangshouding 这个路径的概念不是我强加的啊, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.