我想发送href值。但它不工作。
function display () {
$.fancybox({
'href': 'index.php',
'width' : '75%',
'height' : '75%',
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe'
});
}
我试过这个:
function display (who) {
$.fancybox({
'href': 'index.php'+who,
'width' : '75%',
'height' : '75%',
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe'
});
}
<a onclick="javascript:display("?id=11");" href="#" >create</a>
innerhtml 内的这个 onclick 事件,所以它不能与 ' 斜杠一起使用
为什么