PHP代碼線我要評論一個代碼塊,但我已經在我的JavaScript塊中的線,有jQuery和PHP都怎麼評論一個jQuery代碼塊,具有與jQuery的
這樣
jq('.time_slot').each(function(index) {
var a = jq(this).autocomplete({
serviceUrl:"<? echo $this->config->item('base_url'); ?>business/information/add/autocomplete",
params: { suggessions_id:28767 }, //aditional parameters
onSelect:function(value,data){ jq(this).trigger('change'); }
});
});
與出這個線
serviceUrl:"<? echo $this->config->item('base_url'); ?>business/information/add/autocomplete",
我可以評論使用該塊
/*
*/
,但現在我不能使用它,我也試圖與單行註釋,這樣
//jq('.time_slot').each(function(index) {
//var a = jq(this).autocomplete({
//serviceUrl:"<? echo $this->config->item('base_url'); ?>business/information/add/autocomplete",
// params: { suggessions_id:28767 }, //aditional parameters
// onSelect:function(value,data){ jq(this).trigger('change'); }
// });
// });
但對於此行
serviceUrl:"<? echo $this->config->item('base_url'); ?>business/information/add/autocomplete",
它無法正常工作。
,所以我結束了這樣的
//serviceUrl:"
<? //echo $this->config->item('base_url'); ?>
//business/information/add/autocomplete",
什麼是評論我的代碼塊的最佳方式非常odinary解決方案,預先感謝您。
非常非常難看............:D:D – 2012-02-29 08:10:15