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

有return的三目运算符换行怎么做? #55

Open
juntaoshuai opened this issue Feb 28, 2019 · 2 comments
Open

有return的三目运算符换行怎么做? #55

juntaoshuai opened this issue Feb 28, 2019 · 2 comments

Comments

@juntaoshuai
Copy link

return exeEndUser.tel ? ${exeEndUser.userName}(${exeEndUser.tel}) : exeEndUser.userName

怎么换行?这样吗?
return exeEndUser.tel
? ${exeEndUser.userName}(${exeEndUser.tel})
: exeEndUser.userName

@otakustay
Copy link
Member

return x
    ? y
    : z;

@juntaoshuai
Copy link
Author

thank you

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