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

使用if判断的时候报错,提示syntax error, unexpected token ";"。请问这是什么情况呢?不使用这个if就正常 #85

Open
zxh-Kevin opened this issue Mar 2, 2023 · 6 comments

Comments

@zxh-Kevin
Copy link

截屏2023-03-02 下午6 50 13

![截屏2023-03-02 下午6 51 02](https://user-images.githubusercontent.com/19450692/222407990-90cb00ae-4ffc-4306-bdd9-464bfb933977.png)
@zxh-Kevin
Copy link
Author

Uploading 截屏2023-03-02 下午6.51.02.png…

@xuzihan1
Copy link

xuzihan1 commented Mar 2, 2023 via email

@Billy-666
Copy link

Billy-666 commented Mar 2, 2023 via email

@zxh-Kevin zxh-Kevin changed the title 使用if判断的时候报错,请问这是什么情况呢?不使用这个if就正常 使用if判断的时候报错,提示syntax error, unexpected token ";"。请问这是什么情况呢?不使用这个if就正常 Mar 2, 2023
@Jzow
Copy link
Contributor

Jzow commented Mar 5, 2023

这个错误描述是因为语法错误,你尝试在最后面加上符号;试一试,但我不太确定他是否可以解决问题。

通常我们认为你可以在底部写JS,通过id绑定事件去控制组件显示。

@hp8980787
Copy link

你是用的laravel吗?看看这个

@xuzihan1
Copy link

xuzihan1 commented Sep 18, 2023 via email

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

5 participants