0
我在一个小型项目上工作,并使用VUEJS和PHP将其支持到Wordpress上。混合PHP值和VueJS值
<div v-if="ent.Account === 'username' " v-for="ent in leaders">
hey there {{ ent.Name }} welcome back!
</div>
林想要的 “用户名” 为等于在用户登录从WordPress的
<?php $current_user->user_login ?>
试'ent.Account ===“< ?php echo $ current_user-> user_login?>'' – thanksd