logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

reactNative 引用图标库

1:npm install --save react-native-vector-icons2:react-native link react-native-vector-icons3:import Icon from “react-native-vector-icons/Ionicons”;

#reactnative
react,antd-mobile的按需引入,适配,主题定制,路由,状态管理

按需引入办法1:安装antd-mobilenpm install antd-mobile --save2:引入 react-app-rewired 并修改 package.json 里的启动配置。。由于新的 react-app-rewired@2.x 版本的关系,你需要还需要安装 customize-cra。npm install react-app-rewired customize-cra -

vue插件集合16:vue前端生成图片验证码包含验证

1:创建组件的文件(简单粗暴上代码,方便复制)<template><div class="s-canvas"><canvas id="s-canvas" :width="contentWidth" :height="contentHeight"></canvas></div></template>&...

#前端#vue.js#javascript
vue的底部tab切换 以及图片的变化 两种方式

<template><div class="footbar"><router-link to='/' tag='div'><span><img :src="this.$route.path=='路径'?'选中的图片':'未选中的图片'" alt=""></...

vue插件集合24:获取token,存到header中,后台验签token

1:从接口处拿到token以此接口为例子this.$http.post(&amp;quot;/api/account/login/&amp;quot;, {account: this.moblie,password: this.password,captcha_image: this.icodenum}).then(res =&amp;amp;gt; {consol.log

vue插件集合18:vue实现长按删除方法

1:template中&lt;div v-for="(item,index) in arr" :key="item.id" @touchstart.prevent="touchinUk(index)"@touchend.prevent="cleartime(index)"&gt;&lt;div&

vue插件集合12:vue中判断是iOS,安卓,以及微信的方法

模板中: 其中,img是一张图片,在微信中提示打开浏览器下载&amp;amp;lt;div id=&amp;quot;showad&amp;quot; v-show=&amp;quot;ShowDark&amp;quot;&amp;amp;gt;&amp;amp;lt;div class=&amp;quot;pop&amp;q

#ios#微信
vue插件集合17:vue获取国家以及地区的方法

<template><div class="atnight"><div class="topseach"><form action="/"><van-search v-model="searchVal" :placeholder="$t('auth.count')"show-action @search="onS...

vue插件集合20:vue三种路由引用以及路由守卫

1:这是最常见一种 route的方式import home from "./home.vue";import about from "./about.vue";export default new Router({routes: [{path: '/home ',name: 'home ',component: home ,meta: {title: 'home',require...

vue项目上传图片的方法

<template><div class="power"><ul class="clearfix"><li class="one" v-if="imgs.length>0" v-for='(item ,index ) in imgs'><img :src="item"></li>...

    共 11 条
  • 1
  • 2
  • 请选择