标签: javascript jquery fancybox
尝试在页面加载时加载fancybox时出错。在fancybox-pack.js第18行上说Uncaught TypeError: Cannot read property 'hide' of undefined
Uncaught TypeError: Cannot read property 'hide' of undefined
我的代码是:
$.fancybox($('#sample'));