アプリにテキストを入力している Web ビューがあります。同じテキストを削除するために、次のコマンドを使用しています。
[self.webView stringByEvaluatingJavaScriptFromString:@"document.execCommand('selectall')"];
[self.webView stringByEvaluatingJavaScriptFromString:@"document.execCommand('delete')"];
選択せずにすべてを直接削除する方法はありますか? 私はJavaScriptについてあまり知識がありません。ありがとう