我有一个js方法testPN(param),我需要从我的native应用程序调用它。我正在使用这些行来实现这一点-NSString*jsStatement=[NSStringstringWithFormat:@"testPN(%@);",custData];[selfwriteJavascript:jsStatement];这在某种程度上不起作用。如果我不带任何参数地更改为testPN()并像这样调用它,它就可以工作-NSString*jsStatement=[NSStringstringWithFormat:@"testPN();"];[selfwriteJavascript:jsS