- 博客(20)
- 收藏
- 关注
原创 input 输入框type设置为number,maxlength无效,设置:oninput
maxlength属性无效<input type="number" oninput="if(value.length>11)value=value.slice(0,11)" v-model="Contactphone" class="business_Input"placeholder="请输入联系电话" />
2022-03-21 11:10:18
675
原创 This relative module was not found:* ./store in ./src/main.js
直奔主题:突然报错解决办法:import store from '../store' ,路径那里加个 ".."
2022-02-16 15:53:21
1112
原创 Vue this A = this.B ,A与B 会全局相互影响
如果 this.A = this.B ,则会导致 A值 或者 B值 ,只要其中一个改变了值,A和B都会改变。因为this.A与this.B指针指向相同的地址。this.defaultFloors=JSON.parse(JSON.stringify(this.selectFloorsNames));所以我们先this.selectFloorsNames转json字符串 再转数组 然后赋值给this.defaultFloors这样不会相互影响...
2022-01-14 11:19:23
354
原创 element.style样式如何修改
element.style是一种内联样式,一般都是代码里写死的。其实我们可以用!important来修改它
2022-01-12 13:54:55
4028
1
原创 Vue 数组/对象数据 更新,但是页面不渲染问题
已经赋值过的对象、数组时,向对象中添加新的属性,如果更新此属性的值,页面不会更新视图。是因为我们用错更新方法由于 JavaScript 的限制,Vue不能检测数组和对象的变化。尽管如此我们还是有一些办法来回避这些限制并保证它们的响应性。对于对象/数组Vue 无法检测 property 的添加或移除。由于 Vue 会在初始化实例时对 property 执行 getter/setter 转化,所以 property 必须在data对象上存在才能让 Vue 将它转换为响应式的。例如//...
2022-01-07 15:55:05
5713
3
原创 > Could not resolve com.huawei.hms:scanplus:2.1.0.300.
解决方案: 在android文件项目下 build.gradle --->allprojects{ }添加 maven {url 'http://developer.huawei.com/repo'}
2021-11-30 16:08:15
4483
原创 uniapp input 标签 修改 placeholder 颜色
<input placeholder-style="color:rgba(0, 0, 0, 0.4);" placeholder="输入手机号"></input>
2021-11-09 16:56:07
2106
1
原创 Flutter 广播/通知传值 EventBus 功能
1.bitcode bundle could not be generated because '/Users/imac/Documents/flutterMac/flutter/bin/cache/artifacts/engine/ios/Flutter.xcframework/ios-armv7_arm64/Flutter.framework/Flutter' was built without full bitcode. All frameworks and dylibs for bitcode mu
2021-09-09 17:43:20
821
原创 Flutter: showModalBottomSheet 自定义样式使用注意点
showModalBottomSheet自定义样式使用注意几点一 、调用组件1.需要设置最上面左右圆角设置shape 属性shape: RoundedRectangleBorder(borderRadius: BorderRadius.only(topLeft: Radius.circular(10),topRight:Radius.circular(10))),2.目前只有点击空白区域选择器才会关闭,但是我们需要点击选择器中的内容后就要关闭选择...
2021-08-19 16:44:16
952
原创 flutter Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264) ✗ Android licens
一般情况是java运行环境版本和java环境版本不一致导致的。一、运行 flutter doctor -v 和 java -version 分别查看对应的版本号二、解决办法:1. #vim编辑.bash_profile文件vim ~/.bash_profile2.找到 java sdk路径/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home如图:3.在bash_profile...
2021-08-04 16:29:53
1927
原创 iOS UIAlertController 背景色以及字体设置
//创建UIAlertControllerlet alertVC = UIAlertController(title: "修改家庭名称", message: nil, preferredStyle: .alert)//修改UIAlertController背景色let subview = (alertVC.view.subviews.first?.subviews.first?.subviews.first!)! as UIViewsubview.backgroundC...
2021-07-24 11:25:18
2792
原创 iOS 原生App与JS交互
1.原生App 调 js 方法ios swift 代码:self.webView.evaluateJavaScript("updateMesage()", completionHandler: nil)h5 代码:在methods 方法里面:2.js 调用 原生方法ios swift 代码:h5 代码:
2021-07-07 11:38:00
435
原创 vue.js 数组增加与删除元素
由于没有直接删除元素的方法,只能通过元素获取下标,再通过元素的下标删除元素array.splice(start, deleteCount, item1, item2,...)注:如果deleteCount 为 0 ,表示添加元素的方法const months = ['Jan', 'March', 'April', 'June'];//获取元素的下标var index = this.labelList.indexOf("Jan")添加:months.splice(.
2021-07-06 15:49:02
3203
原创 The application could not be installed: INSTALL_FAILED_TEST_ONLY
android 测试真机报错 如图:解决办法如下:gradle.properties 文件 里面 加android.injected.testOnly=false
2021-07-05 18:14:04
235
1
原创 gradle:failed to find Build Tools revision 29.0.2
当运行Flutter 项目 运行在andorid 设备上时候 ,出现 failed to find Build Tools revision 29.0.2 错误其实也就是我们android studio SDK 缺少 29.0.2 版本然后从新运行 Flutter run发现不再报错,问题成功解决
2021-06-29 18:24:03
2221
1
原创 iOS APP 跳转 第三方 APP
关于 pod install 出现 ... dependency were found,but they required a higher minimum deployment target.Specs satisfying the `XXXXX` dependency were found,but they required a higher minimum deployment target.由于 podfile 里配置的target版本太低,改成platform :ios, '1...
2021-05-16 11:16:43
1941
原创 关于 pod install ... dependency were found, but they required a higher minimum deployment target.
关于 ...dependency were found,but they required a higher minimum deployment target.Specs satisfying the `XXXXX` dependency were found,but they required a higher minimum deployment target.由于 podfile 里配置的target版本太低,改成platform :ios, '10.0',再去 pod inst...
2021-05-14 11:49:34
14550
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人