Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/368.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 在给定图像路径时,不允许加载Html中的本地资源_Javascript_Jquery_Html_Spring Mvc - Fatal编程技术网

Javascript 在给定图像路径时,不允许加载Html中的本地资源

Javascript 在给定图像路径时,不允许加载Html中的本地资源,javascript,jquery,html,spring-mvc,Javascript,Jquery,Html,Spring Mvc,我是Spring MVC的新html。请用代码告诉我。图像路径是G:\Spring Tutorial\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\contentmanagementsystem\resources\images\GoodBook.jpeg路径在项目目录中,而不是在本地驱动器中。 <img style="width:80px; height : 80px;" src="G:\Spring-

我是Spring MVC的新html。请用代码告诉我。

图像路径是G:\Spring Tutorial\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\contentmanagementsystem\resources\images\GoodBook.jpeg路径在项目目录中,而不是在本地驱动器中。
   <img style="width:80px; height : 80px;" src="G:\Spring-Tutorial\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\contentmanagementsystem\resources\images\GoodBook.jpeg">
Not allowed to load local resource: file:///G:/Spring-Tutorial/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/contentmanagementsystem/resources/images/GoodBook.jpeg