我们在用truffle做DApp项目 pet-shop的时候,可能会遇到页面不显示图片的问题。
在index.html中,因为国内无法访问谷歌,所以使用百度替换,
将
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js">
中的地址替换为
<script src="https://libs.baidu.com/jquery/1.9.0/jquery.min.js"></script>
这样就可以成功显示页面啦!