Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SupNewBeen opened this issue Feb 13, 2019 · 2 comments
Open

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

SupNewBeen opened this issue Feb 13, 2019 · 2 comments

Comments

@SupNewBeen
Copy link

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

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

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

@sjr7
Copy link
Owner

sjr7 commented Feb 15, 2019

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

@SupNewBeen
Copy link
Author

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

感谢!解决了!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants