Comments (1)
uni-app input组件内部的value是用watch监听的,然后在watch监听回调把你传入的value赋给一个新的value
你本来是value title = 1
然后输入 1a
你把非数字删除value title = 1
然后title 没变!所以input 内部的 watch就不会触发
所以建议你这种:伪代码
this.title = 1a
$nextTick(() => {
this.title = 1
})
from uni-app.
Related Issues (20)
- template 无法访问 setup script 定义的常量 HOT 2
- 安卓7.1.x 无法获取正常的getApp()对象
- uni-file-picker 组件可以动态触发吗? HOT 1
- vue3 微信小程序使用 uni://form-field 报错、嵌套组件时拿不到 submit 的 value HOT 15
- 如何自定义 babel HOT 2
- 小程序下import的编译问题 HOT 3
- 引用pako这个库之后编译的时候报错 HOT 4
- 微信小程序中某个组件引用另一个组件时报错 [plugin:uni:mp-using-component] Expected ',' or '}' after property value in JSON at position xxx HOT 7
- App 循环动态插槽 安卓下不生效 H5 可以
- uniapp x input为什么不能绑定对象里的某个值 HOT 2
- 【求助】如何使用python下载uploadFile上传的图片 HOT 2
- uniapp开发的插件获取不到参数 HOT 2
- 放到wxcomponents里微信自定义组件在编译到h5的时候不生效,vue3项目 HOT 1
- vue3中使用事件event.stopPropagation()无法阻止touchmove事件冒泡,但是如果给事件绑定的地方加上.stop事件修饰符却可以阻止冒泡 HOT 1
- Vue3 项目安卓真机调试报错:Cannot read property '$page' of undefined HOT 2
- this.$refs又获取不到值了 HOT 8
- uniapp 我使用npx升级到最新以后编译小程序使用import报错了 HOT 1
- uniapp 我使用npx升级到 3.0.0-alpha-4010520240507001 以后编译编译微信小程序报错了 HOT 3
- 使用uni.chooseLocation API定位时偏移过大 HOT 5
- 使用 @dcloudio/uvm 更新 vue3 最新版本依赖报错 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uni-app.