兩者之間的寫法在任何項(xiàng)目是否會(huì)不同的區(qū)別?$('#whatever').on('click', function() { /* your code here */});and$('#whatever').click(function() { /* your code here */});
on('click') vs .click() ?
白豬掌柜的
2018-08-13 16:16:01