isuansuan

xml

<input id=\'searchInput\' placeholder=\'{{phValue}}\' type="text"  bindfocus=\'onFocus\' bindblur=\'onBlur\'/>
 
js
Page({
// 页面的初始数据
data: {
phValue:"请输入要录入的单词"
},
onFocus: function (e) {
this.setData({
phValue:" "
})
},
onBlur: function (e) {
this.setData({
phValue: "请输入要录入的单词"
})
}
})

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-01-07
  • 2021-11-23
  • 2022-12-23
  • 2023-02-09
  • 2021-07-13
  • 2021-10-06
  • 2021-11-26
猜你喜欢
  • 2021-04-07
  • 2021-04-04
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2021-06-14
相关资源
相似解决方案