レス書き込み
スレへ戻る
写
レス栞
レス消
JavaScript 4©2ch.net
PC,スマホ,PHSは
ULA
べっかんこ
公式(スマホ)
公式(PC)
で書き込んでください。
名前
メール
引用切替:
レスアンカーのみ
>>76 > >>75 > null(undefined)チェックを忘れた… > function test(hoge, foo) { > 'use strict'; > if (!hoge) return; > if (typeof hoge === 'boolean') { > console.log('hoge is', hoge); > } else if (typeof hoge === 'object') { > if (hoge.hasOwnProperty('hoge') && typeof hoge.hoge === 'boolean') { > console.log('hoge is', hoge.hoge); > } > if (hoge.hasOwnProperty('foo') && typeof hoge.foo === 'boolean') { > console.log('foo is', hoge.foo); > } > } > } > test(true, false); > test({hoge: true, foo: false}); > test({hoge: 2}); > test({hage: 2}); > test(null); > test(undefined); > test([]); > test({hoge:[]}); > > 単にnullチェック抜けてるって言えば済む問題を○型が考慮されてないとか > お前の方が素人丸出しだ
ローカルルール
SETTING.TXT
他の携帯ブラウザのレス書き込みフォームはこちら。
書き込み設定
で書き込みサイトの設定ができます。
・
ULA
・
べっかんこ(身代わりの術)
・
べっかんこ(通常)
・
公式(スマホ)
・
公式(PC)[PC,スマホ,PHS可]
書き込み設定(板別)
で板別の名前とメールを設定できます。
メモ帳
(0/65535文字)
上
下
板
覧
索
設
栞
歴
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.009s