我想用qTip傳遞動態參數,但失敗。 my_ajax_controller.php只顯示變量類型,但不顯示q。使用qTip動態內容的動態參數
$('a.menu_help').qtip({
content: {
url:'my_ajax_controller.php',
data: 'type=help_menu&q='+$(this).attr('id'),
method: 'get'
},
show: 'mouseover',
hide: 'mouseout'
});
然而,Q作品的靜態值:
$('a.menu_help').qtip({
content: {
url:'my_ajax_controller.php',
data: 'type=help_menu&q=toto',
method: 'get'
},
show: 'mouseover',
hide: 'mouseout'
});
有沒有辦法通過一個動態值的參數數據?
在此先感謝!
弗洛朗
這不起作用。 –
我確認這是行不通的,你正在做一個對象定義中的賦值。你會得到一個'丟失:屬性ID'後 –