上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页
摘要: 思路 定义一个数组来记录被点击的元素 arr 数组通过indexOf来来查找 如果有,激活类就是true 没有; 激活类为false 这一步最关键的是查找的内容就是显示出来的index, 点击的时候传递参数(key),通过indexOf查找 如果没有 push到arr; 若是有;splice删除这个 阅读全文
posted @ 2020-09-10 22:14 何人陪我共长生 阅读(11401) 评论(0) 推荐(0)
摘要: 参考地址:https://blog.csdn.net/lll_liuhui/article/details/87923041 <template> <view class="scrool-page"> <view class="header-cont">头部</view> <view class=" 阅读全文
posted @ 2020-09-04 22:08 何人陪我共长生 阅读(19983) 评论(1) 推荐(1)
摘要: 参考地址: https://blog.csdn.net/weixin_42120767/article/details/107550236 在原生微信小程序中,我们可以设置page{background:#fff}来设置页面背景颜色, 如果你在uniapp上设置了不起作用,是因为标签上加了scope 阅读全文
posted @ 2020-09-02 21:03 何人陪我共长生 阅读(662) 评论(0) 推荐(0)
摘要: scroll-x="true" 出现横向滚动 scroll-with-animation="true" 横向滚动有动画 <scroll-view class="scrool-more" scroll-x="true" scroll-with-animation="true"> <text class 阅读全文
posted @ 2020-09-02 20:50 何人陪我共长生 阅读(2743) 评论(0) 推荐(0)
摘要: 我们有时会遇到要用实现一个弧形,而这样的弧形要怎么实现呢? 用图片?好像不大现实,因为这样就要无故多加载一张图片了 ,这里我们来说说怎么用css的after伪类来实现弧形。 如果想要调整弧度的话,可以通过高读来调整的; <view class="bb"></view> .bb{ width: 100 阅读全文
posted @ 2020-09-01 21:39 何人陪我共长生 阅读(4605) 评论(0) 推荐(2)
摘要: 这个组件在界面==>交互反馈中 经常使用的哈; 特别注意:如果值title太长了,可能就一个值都不会显示 1.提示信息;可以用于操作某一项提示用户是否成功; uni.showToast({ title: '成功', icon:'none',//不要图标 duration: 1000//1后消失 }) 阅读全文
posted @ 2020-09-01 14:18 何人陪我共长生 阅读(6629) 评论(0) 推荐(0)
摘要: axios里面可以设置拦截器 ,在请求发送之前做一些事情; 拦截器分【请求拦截器】和【响应拦截器】 参考地址:https://www.jb51.net/article/150014.htm 参考的地址:https://www.jianshu.com/p/7bc7654d4574 请求拦截器的实际应用 阅读全文
posted @ 2020-08-31 23:46 何人陪我共长生 阅读(6876) 评论(0) 推荐(0)
摘要: 在app.vue下,引入 <style> @font-face { font-family: 'iconfont'; /* project id 1951514 */ src: url('https://at.alicdn.com/t/font_1951514_c10bgx9xy2l.eot'); 阅读全文
posted @ 2020-08-31 22:31 何人陪我共长生 阅读(545) 评论(0) 推荐(0)
摘要: import React, { Component } from "react"; export default class Shengming extends Component { // 调用父类的 constructor方法;传递props属性,染发props属性起作用 constructor 阅读全文
posted @ 2020-08-26 19:25 何人陪我共长生 阅读(575) 评论(0) 推荐(0)
摘要: react的生命周期,分为3三个阶段, 挂载阶段 constructor(){} UNSAFE_componentWillMount(){} == componentWillMount(在17版本中将废除){} componentDidMount(){ 发送异步请求的} render(){} 跟新: 阅读全文
posted @ 2020-08-24 20:14 何人陪我共长生 阅读(572) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页