To develop a metro app using JS and html ,how to access the upper directory?
-
2012年7月18日 3:37Previously, in JavaScript using<Script src="../xxx"> to access the upper directory. But in metro App, it can't works. So the question is how to access the upper directory in the JavaScipt coding in the metro app? thanks!
すべての返信
-
2012年7月18日 14:21モデレータ
You cannot. Use the actual directory.
-Jeff
Jeff Sanders (MSFT)
- 回答の候補に設定 Jeff SandersMicrosoft Employee, Moderator 2012年7月18日 14:21
-
2012年7月19日 0:05
Which is to say that src="/..." refers to the root of your app package (the /) and you can do relative references from there. If for some reason you've loaded an HTML page that's in a subfolder of the app package, then ../ can be used to refer to something in the package root, but then you might as well just prefix it with / to begin with.
As Jeff suggests, trying to get to the parent folder of the app package isn't allowed.
If you have a particular scenario in mind we might be able to be more specific.
.Kraig
- 回答の候補に設定 Dino HeModerator 2012年7月19日 7:28
- 回答としてマーク Dino HeModerator 2012年7月26日 8:25
-
2012年8月2日 1:23
Thanks for your help

