![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
uni-app
happy-码蚁
这个作者很懒,什么都没留下…
展开
-
uni-app中Android手机兼容new Date(str)的方法?
注:str 的类型为2000-01-01 10:20:00date=new Date(str); //js中可以与new Date()进行比较;但是在uni-app中在手机中运行时new Date(str)无法兼容解决方法: str=str.replace(/-/g, '/');new Date(str)这样就可以兼容手机...原创 2020-05-15 10:33:14 · 534 阅读 · 0 评论 -
js中解决数组中,连续的重复项无法完全删除
数组中解决无法完全删除连续元素原创 2019-08-26 14:30:13 · 272 阅读 · 0 评论 -
uni-app中在页面内定位到对应位置中
1.html页面<view class="hospital-list" > <view class="hospital-item" :id="item.charactor" v-for="(item,index) in hosptalLists" :key="index"> <view class="item...原创 2019-08-27 11:32:02 · 7822 阅读 · 0 评论 -
uni-app中配置devServer实现跨域访问数据
1.在devServer中:在manifest.json->源码视图中添加注意:以下代码可以跨域,但是请求出来的数据不是想要的,会出现请求得到的不是数据,而是得到https://api.ithome.com网址的报错网页代码"h5": { "devServer": { "port": 8000, "dis...原创 2019-08-30 16:45:42 · 13126 阅读 · 6 评论