0
所以我可以用我用下面的代碼結構的短期和便利美元jQuery的符號:Drupal的jQuery的命名空間
(function($) {
$('div#webform-component-team-name').css('background', 'blue');
alert('testing!');
console.log('working...!');
})(jQuery);
不過,我覺得沒有什麼可與我的警惕和語句的console.log的除外。這些聲明做工精細,但第二行改變背景顏色(或$ anythingelse開始不會。
誰能幫助我,好嗎?