1
我需要動態修改我的UIWebView中的Javascript。我在我的應用程序的Documents文件夾中本地加載文件html。如何以編程方式修改UIWebView中的JavaScript?
我需要創建一個VAR屬性,像這樣:
var attributes = {
"feedURL": "http://www.obliviux.com/?feed=rss2", //insert NSString *RSS here
"maxAgeToShow": "-1", //insert NSString *maxAge here
"numItemsToShow": "10", //insert NSString *numItems here
"topStories": "3" //insert NSString *topStories here
};
並與一些NSString的我已保存修改其值..
我怎樣才能做到這一點?
非常感謝:) – 2010-08-17 08:29:38