乐趣区

关于html:获取节点的特殊方式

<input type="text" v-model="userEmail" name="regEmail" class="input-item email" placeholder="<?= lang('register_enter_address') ?>"/>
<input type="number" v-model="userPhone" name="regPhone" class="input-item phone" placeholder="<?= lang('register_enter_number') ?>"/>
var phone = $("input[name='regPhone']").val() || "";
var email = $("input[name='regEmail']").val() || "";
退出移动版