在Mootools,我只是跑if ($('target')) { ... }.if ($('#target')) { ... }在jQuery中是否以相同的方式工作?
if ($('target')) { ... }
if ($('#target')) { ... }
javascript jquery jquery-selectors
javascript ×1
jquery ×1
jquery-selectors ×1