1

こんにちは私はそこでプロジェクトに取り組んでいます私はこのような行を見つけました:

window.open("url/example",false);

しかし、私はw3schools.comで、window.openが4つのパラメーターを受け入れることを読みました。

http://www.w3schools.com/jsref/met_win_open.asp

彼らは名前として2番目のパラメーターをリストし、次の値を受け入れます。

name    Optional. Specifies the target attribute or the name of the window. 

次の値がサポートされています。

        _blank - URL is loaded into a new window. This is default
        _parent - URL is loaded into the parent frame
        _self - URL replaces the current page
        _top - URL replaces any framesets that may be loaded
        name - The name of the window

事前に感謝の気持ちを込めて、コードでどのような誤りを表現しているのか疑問に思っています...良い質問ではない場合は申し訳ありません。JS初心者。

4

1 に答える 1

4

false文字列に型キャストされます。これはになります"false"

于 2012-09-10T12:39:15.333 に答える