- (void)myMethod:(CDVInvokedUrlCommand*)command
{
NSString* echo = [command.arguments objectAtIndex:0];
NSLog(@"%@",echo);
POSJiaoyiViewController *sele=[[POSJiaoyiViewController alloc] init];
[self.viewController.navigationController pushViewController:sele animated:YES];
userDefaults=[NSUserDefaults standardUserDefaults];
if (echo != nil && [echo length] > 0) {
[self.commandDelegate runInBackground:^{
CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:echo];
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}];
} else {
[self.commandDelegate runInBackground:^{
CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:@"Arg was null"];
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}];
}
}