当前位置:网站首页>uniapp | 开发中遇到的兼容性问题(待续)
uniapp | 开发中遇到的兼容性问题(待续)
2022-08-02 03:23:00 【呆呆papa】
1、日期格式问题
使用uniapp开发过程中,有这么一段代码,将两个时间字符串通过JS的date构造函数,构造出两个日期并比较大小,在Android平台没有问题,在ios上就出现了日期比较失败,无法执行正常的校验。
ios中不支持
-作为日期之间的分隔符,需要使用/。使用replaceAll替换掉日期字符串中的-就好了。
参考文献
进阶之路-前端:ios对new Date() 的兼容问题
2、输入框click事件
禁用状态下载input组件,在android平台可以正常监听click事件,在ios上click监听异常
边栏推荐
- Debian 10 NTP Service Configuration
- display,visibility,opacity
- js takes the value of a feature at a certain position in the string, such as Huawei=> Huawei
- C语言 十六进制整数字符串转十进制整数
- clock tick marks
- 6.27面试集
- PCL—point cloud data segmentation
- 啃瓜记录又一天
- 每天填坑,精卫填坑第二集,TX1 配置从固态启动,安装Pytorch
- 语义分割标签即像素值的巨坑,transforms.ToTensor()的错误使用
猜你喜欢

DOM manipulation---magnifying glass case

C语言 十六进制整数字符串转十进制整数

啃瓜记录第一天

语义分割标签即像素值的巨坑,transforms.ToTensor()的错误使用

Advanced gradient of skeleton effect, suitable for waiting for pictures

STM32 CAN过滤器

require modular syntax

Debian 10 NTP Service Configuration

Phospholipid-polyethylene glycol-thiol, DSPE-PEG-Thiol, DSPE-PEG-SH, MW: 5000

如何查看一个现有的keil工程之前由什么版本的keil IDE编译
随机推荐
6.27面试集
Redis simple study notes
Circular linked list---------Joseph problem
Basic usage of Monaco Editor
1.13 学习JS
Detailed explanation of the usage of exists in mysql
js 正则中 replace() 使用
解决MySQL创建子视图并查看的时候,字符集报错问题
Knowledge Engineering Assignment 2: Introduction to Knowledge Engineering Related Fields
The usage of json type field in mysql
C语言入门小游戏—三子棋
Guangzhou Huawei Interview Summary
暴力方法求解(leetcode14)查找字符串数组中的最大公共前缀
PCL—point cloud data segmentation
Phospholipid-polyethylene glycol-azide, DSPE-PEG-Azide, DSPE-PEG-N3, MW: 5000
L1-039 古风排版(C)
啃瓜记录又一天
DSPE-PEG-PDP, DSPE-PEG-OPSS, phospholipid-polyethylene glycol-mercaptopyridine supply, MW: 5000
【 application 】 life many years of operations, what turned scored 12 k + annual bonus salary?
--fs module--