var $inputPswd1 = $('#checkInput01'),
$inputPswd2 = $('#checkInput02'),
$inputPswds = $inputPswd1.add($inputPswd2);
var bindOn = function() {
return typeof $(document)['on'] ? 'on' : 'bind';
}();
$inputPswds[bindOn]('keyup._passchk', function(e){
});
このコードスニペットは、誰もがこれらの線が何を言うvalidation.Can入力の一部として書かれている:
typeof $(document)['on']
と
$inputPswds[bindOn]('keyup._passchk', function(e) {});
checkInput01
とcheckInput02
は、二つの入力のidのです。
思いません '$ .fn.on? 'on': 'bind''はもっと速くなりますか? – haim770
しかし、ほとんどの場合、コード全体がほとんど役に立たないでしょう。 –
マククロッサンありがとうございます。本当にありがとうございます。 – Aeverlite