You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the implementation of directory specifiers such as '{pro}' or '{platform}', specifiers are replaced by the directories you provide. Therefore after parsing, it may end up being something like 'yourbase//api/element'. However, these kinds of URIs will be formatted before getting loaded so it is not really an issue.
Conclusion: Either adding a slash or not is fine. They will be formatted eventually anyway.
For more implementation details, you can check out my naive analysis of this framework. It is a work in progress and the analysis of define.js is mostly done.
问题:{variable} 花括号中的路径变量后要不要路径分隔符啊?可以试出来,不过还没跑,希望文档能写清楚点。
补充,刚问了,貌似都行啊。
The text was updated successfully, but these errors were encountered: