评分明星组件VUEJS2
我有一个从一到五的积分数字,我应该能够根据该数字打印恒星数(使用Fontawersome)。 我能做些什么?
我必须使用vuejs 2
I have an integral number from one to five and I should be able to print the number of stars (using FontAwersome) based on that number.
What can I do?
I have to use VueJS 2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以做类似的事情:
where
getStarratingValue
是一个函数,将评级从0返回到5You can do something like that :
where
getStarRatingValue
is a function that return your rating from 0 to 5一种简单的方法:
One simple way: