<view class="margin-lr-xl margin-top-xl">
<myInput v-model="param.nickname" :placeholder="lang.register.nickname" maxlength="50"></myInput>
</view>
<view class="margin-lr-xl margin-top-xl">
<myInput v-model="param.email" :placeholder="lang.register.email" maxlength="50"></myInput>
</view>
<view class="margin-lr-xl margin-top-xl">
<myInput v-model="param.mobile" v-if="1" :placeholder="lang.register.phone_number" maxlength="11"></myInput>
</view>
<view class="margin-lr-xl margin-top-xl">
<myInput v-model="param.password" pass :placeholder="lang.register.password"></myInput>
</view>
<view class="margin-lr-xl margin-top-xl">
<myInput v-model="param.repassword" pass :placeholder="lang.register.repassword"></myInput>
</view>
![a***@gmail.com](https://img-cdn-tc.dcloud.net.cn/account/identicon/461154c1e5ee6276b6854bae3411e83e.png)
- 发布:2020-10-01 02:21
- 更新:2020-10-06 02:12
- 阅读:626
产品分类: HbuilderX
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: windows 10
HBuilderX版本号: 2.8.12
示例代码:
操作步骤:
创建一个input field
使用绑定变量的placeholder
打包成ios app
然后用iphone打开页面
创建一个input field
使用绑定变量的placeholder
打包成ios app
然后用iphone打开页面
预期结果:
input field应该会显示placeholder的内容
input field应该会显示placeholder的内容
实际结果:
会看到placeholder没有显示出来
会看到placeholder没有显示出来
bug描述:
IOS里input field的placeholder显示不出来, 安卓或H5仍然可以正常显示
以前ios是可以正常显示的