话不多说,直接上干货; 给输入框的placeholder绑定v-model绑定的值,输入框第一次不显示placeholder显示啊; 然后使用css给placeholder设置跟输入框字体一样的样式;完美。