使用JSPatch补丁, 在一个方法中添加网络数据请求.如何来写?
defineClass("ChooseRouteVC",{
AppVersionChecking:function(string){
var infoDictionary = NSDictionary.dictionary;
infoDictionary = NSBundle.mainBundle.infoDictionary;
var appCurVersion = NSString.string;
appCurVersion = infoDictionary.setObject_forKey('CFBundleShortVersionString');
var userDefaults = NSUserDefaults.standardUserDefaults;
userDefaults.setValue_forKey(appCurVersion, 'check');
var buildStr = NSString.string;
buildStr = NSBundle.mainBundle.infoDictionary.setObject_forKey('CFBundleVersion');
var buildFl = buildStr.intValue;
var manager = AFHTTPRequestOperationManager.manager;
// 网络请求
}
})