Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/79.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何使用dom元素动态绑定facebox对象 功能测试() { //通过ajax调用加载一些数据 html=''; $('#id_fv').html(html); } jQuery(文档).ready(函数($){ $('a[rel*=facebox\u edit]')。facebox({ 加载图像:完整路径+'images/loading.gif', closeImage:full_path+'images/closelabel.png' }); });_Javascript_Jquery_Jquery Plugins_Facebox - Fatal编程技术网

Javascript 如何使用dom元素动态绑定facebox对象 功能测试() { //通过ajax调用加载一些数据 html=''; $('#id_fv').html(html); } jQuery(文档).ready(函数($){ $('a[rel*=facebox\u edit]')。facebox({ 加载图像:完整路径+'images/loading.gif', closeImage:full_path+'images/closelabel.png' }); });

Javascript 如何使用dom元素动态绑定facebox对象 功能测试() { //通过ajax调用加载一些数据 html=''; $('#id_fv').html(html); } jQuery(文档).ready(函数($){ $('a[rel*=facebox\u edit]')。facebox({ 加载图像:完整路径+'images/loading.gif', closeImage:full_path+'images/closelabel.png' }); });,javascript,jquery,jquery-plugins,facebox,Javascript,Jquery,Jquery Plugins,Facebox,在身体负重时,我调用函数test(), 现在,当我点击链接时,它直接进入www.google.com页面,而不是将其加载到facebox中。怎么解决呢?像这样写 function test() { //load some data through ajax call html = '<a rel="facebox_edit" href="www.google.com">abc</a>'; $('#id_fv').html(html); } jQ

在身体负重时,我调用函数test(), 现在,当我点击链接时,它直接进入www.google.com页面,而不是将其加载到facebox中。怎么解决呢?

像这样写

function test()
{
    //load some data through ajax call 
    html = '<a rel="facebox_edit" href="www.google.com">abc</a>';
    $('#id_fv').html(html);
}

jQuery(document).ready(function($) {
                $('a[rel*=facebox_edit]').facebox({
                    loadingImage : full_path+'images/loading.gif',
                    closeImage   : full_path+'images/closelabel.png'
                });
            });
功能测试()
{
//通过ajax调用加载一些数据
html='';
$('#id_fv').html(html);
}
jQuery(文档).ready(函数($){
test();
$('a[rel*=facebox\u edit]')。facebox({
加载图像:完整路径+'images/loading.gif',
closeImage:full_path+'images/closelabel.png'
});
});
function test()
{
    //load some data through ajax call 
    html = '<a rel="facebox_edit" href="www.google.com">abc</a>';
    $('#id_fv').html(html);
}

jQuery(document).ready(function($) {
                test();
                $('a[rel*=facebox_edit]').facebox({
                    loadingImage : full_path+'images/loading.gif',
                    closeImage   : full_path+'images/closelabel.png'
                });
            });