Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
HTMLページをJavaScriptファイルに取り込もうとしています(本質的にWebページはJSON文字列で構成されます)。次に、その文字列を評価用のjs変数に設定したいと思います。$.ajax メソッドを試しましたが、現在は役に立ちません。
jQuery.getJSON('my.json', function (obj) { MyNS.Sub.doSomething(obj); });