Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/77.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
使用laravel 4无法加载jquery上的图像_Jquery_Html_Image_Laravel 4_Blade - Fatal编程技术网

使用laravel 4无法加载jquery上的图像

使用laravel 4无法加载jquery上的图像,jquery,html,image,laravel-4,blade,Jquery,Html,Image,Laravel 4,Blade,我有一个正在加载的.gif图像,单击按钮后将显示该图像, 我使用jquery来处理html el.block({ overlayCSS: { backgroundColor: '#fff' }, message: '<img src="assets/images/loading.gif" /> Just a moment...', css: { border: 'none', color: '#333',

我有一个正在加载的.gif图像,单击按钮后将显示该图像, 我使用jquery来处理html

el.block({
    overlayCSS: {
    backgroundColor: '#fff'
    },
    message: '<img src="assets/images/loading.gif" /> Just a moment...',
    css: {
        border: 'none',
       color: '#333',
       background: 'none'
    }
});
但是在jquery中,我不能使用asset,因此代码就像在顶部一样,图像url也会出错

http://localhost/administrator/public/admin/ui-lab/assets/images/loading.gif
我现在的网址是

http://localhost/administrator/public/admin/ui-lab

那么,如何解决此问题?

管理员是您的webroot?所以,让它成为:/administrator/public/assets/images/loading.gif-顺便说一句,这不应该是公共的吗?问题已经解决了,顺便说一句:)
http://localhost/administrator/public/admin/ui-lab