Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ajax 呼び出しを行い、サーバーから返された文字列を受け取ります (これは別の文字列とチェーンである可能性もあります)。
thisitem.parent().parent().hide()
今、その jquery チェーンを実行したいと思います。答えだと思いますeval()が、それは危険だと思いますか?
eval()
では、代替手段は何ですか?またはeval()、この目的のために危険ではありませんか?
jQuery.getScript() を使用する
http://api.jquery.com/jQuery.getScript/
javascriptはスクリプトです。おそらく、スクリプト文字列ではなく (1,2) としてフラグを応答できます。おもう 。