spring-graphql-sample icon indicating copy to clipboard operation
spring-graphql-sample copied to clipboard

为什么我点击提问按钮没有弹窗?

Open SupNewBeen opened this issue 7 years ago • 2 comments

header.html里的提问按钮定义如下:

#if ($user)
<button class="zu-top-add-question" id="zu-top-add-question">提问</button>
#end

和老师课上用的是一样的,可是为什么我点击提问按钮就没有输入问题的窗口呢?是需要在其他的地方自己手动引入js文件吗?

SupNewBeen avatar Feb 13 '19 04:02 SupNewBeen

JS 文件的导入是在 /template/footer.html 中的,你需要看下在 /template/index.html 中是否引入了 foot.html ,这样 JS 文件才会被导入。该按钮是通过 JS 触发拟态框出来的,根据你描述的情况应该是 JS没有生效,可以看下控制台是否报错,排查出错原因。

sjr7 avatar Feb 15 '19 01:02 sjr7

JS 文件的导入是在 /template/footer.html 中的,你需要看下在 /template/index.html 中是否引入了 foot.html ,这样 JS 文件才会被导入。该按钮是通过 JS 触发拟态框出来的,根据你描述的情况应该是 JS没有生效,可以看下控制台是否报错,排查出错原因。

感谢!解决了!

SupNewBeen avatar Feb 15 '19 02:02 SupNewBeen