Javascript Jquery语法等价
jquery的等价物是什么:Javascript Jquery语法等价,javascript,jquery,Javascript,Jquery,jquery的等价物是什么: document.getElementById("roomType").innerHTML = $('#' + self.selectedLocation + '').html(); $('#roomType').html('#' + self.selectedLocation); 我试过这个: $('#roomType').html('#' + self.selectedLocation); 但我得到的结果是: $('#roomType').ht
document.getElementById("roomType").innerHTML = $('#' + self.selectedLocation + '').html();
$('#roomType').html('#' + self.selectedLocation);
我试过这个:
$('#roomType').html('#' + self.selectedLocation);
但我得到的结果是:
$('#roomType').html('#' + self.selectedLocation);
#6
它将是:
$('#roomType').html('#' + self.selectedLocation);
$('#roomType').html( $('#' + self.selectedLocation).html() );
只是少了一点东西:
$('#roomType').html('#' + self.selectedLocation);
$('#roomType').html($('#' + self.selectedLocation).html());
$('#'+self.selectedLocation+'').html()代码>已经是jQuery了!