if(commentEnvironmentValue==“”){
mui.alert(“机舱环境星级值不能为空”,“温馨提示”,“确认”);
return false;
}else if(commentServiceValue==“”){
mui.alert(“服务态度星级值不能为空”,“温馨提示”,“确认”);
return false;
}else if(commentFoodValue==“”){
mui.alert(“用餐口味星级值不能为空”,“温馨提示”,“确认”);
return false;
}else if(commentInfo==“”){
mui.alert(“请填写您的意见或建议”,“温馨提示”,“确认”);
return false;
}else if(commentEmail==“”){
mui.alert(“请留下您的邮箱地址,我们会将反馈结果及时反馈给您”,“温馨提示”,“确认”);
return false;
}else if(!regEmail.test(commentEmail)){
mui.alert(“您填写的邮箱格式不正确,请重新输入”,“温馨提示”,“确认”);
return false;
}else if(commentImageValue==“”){
mui.alert(“请对您认为不好的地方留下一张图片,方便我们定位问题”,“温馨提示”,“确认”);
return false;
}else{
var commentForm = new FormData();
commentForm.append(“commentEnvironmentValue”,commentEnvironmentValue);
commentForm.append(“commentServiceValue”,commentServiceValue);
commentForm.append(“commentFoodValue”,commentFoodValue);
commentForm.append(“commentInfo”,commentInfo);
commentForm.append(“commentEmail”,commentEmail);
commentForm.append(“commentImage”, commentImage);
xhr.send(commentForm);
}
});
});
vue加原生js
评价
- 机舱环境
v-bind:key=“index”>
- 服务态度
v-bind:key=“index”>
- 用餐口味
v-bind:key=“index”>
<input type=“file” id=“commentImage” name=“commentImage” style=“margin-left: 15px;” accept=“image/*;”
@change=‘onUpload’>
<button type=“button” class=“mui-btn mui-btn-primary” @click=“submitBtn” style=“width: 100%; padding: 15px;”
id=“commentSubmitBtn”>提交评论
最后
我可以将最近整理的前端面试题分享出来,其中包含HTML、CSS、JavaScript、服务端与网络、Vue、浏览器、数据结构与算法等等,还在持续整理更新中,希望大家都能找到心仪的工作。
篇幅有限,仅展示部分截图: