pulling in html (json string) into javascript
i am trying to pull an html page into my javascript file, (essentaiily the webpage will consist of a JSON string) and then i would like to set that string to a js var for eval. i have tried the $.ajax method - 开发者_开发百科currently to no avail.
jQuery.getJSON('my.json', function (obj) {
MyNS.Sub.doSomething(obj);
});
精彩评论