自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 mixins

<template> <span>{{api}}</span> <button @click="success"></button> </template><script> var baseMixin = { data(){ return { api:'你好' } }, methods{ .

2021-01-29 09:14:01 79

原创 vant按需引入

1.通过 npm 安装npm i vant -S2.安装插件npm i babel-plugin-import -D3.babel.config.js 中配置module.exports = { plugins: [ ['import', { libraryName: 'vant', libraryDirectory: 'es', style: true }, 'vant'] ]};4.在main.js里引入i

2020-07-14 16:14:29 593 1

原创 vue-router步骤

1. 引入资源<script src=“./vue-router.js”></script>2. 定义导航<router-link to=“/bj”>北京</router-link><router-link to=“/bj”>上海</router-link><router-link to=“/tj”>天津</router-link>3. 定义容器<router-...

2020-06-18 22:04:31 140

原创 小程序表单验证

安装google插件: json-handle具体方法:https://www.cnblogs.com/xifenglou/p/11364426.htmlimage 的mode属性widthFix 让图片的标签宽高等比例发生变化swiper和image设置swiper高度设置和图片高度一致image设置mode="widthFix" width="100%"在小程序里进行表单验证:地址:https://github.com/skyvow/wx-exten...

2020-05-11 14:02:51 589

原创 小程序登录流程

渲染层:wxml+wxss逻辑:javascript配置:JSONapp.js 小程序逻辑app.json 小程序公共设置app.wxss 小程序公共样式表数据渲染数组渲染:<view wx:for="{{list}} wx:key="*this">{{index}}{{item.name}}</view>对象渲染:<view wx:for="{{person}} wx:for-item="value" wx:..

2020-05-11 13:57:53 282

原创 前端笔记 JS

6.30JS 把其他类型转换成字符串类型:1.      toString()方法var num = 18;num.toString(); null和undefined没有toString() 2.      String()方法var a = null;String(a); null和undefined可以用String()方法 3.      字符串拼接 var num = 18;consol...

2018-07-02 08:39:32 148

原创 链接伪类

a:link{color:red;}                                 链接的默认状态a:visited{ color:pink;}                                 链接访问之后的状态a:hover{ color: black;    text-decoration: none;}                           ...

2018-03-23 15:27:35 336

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除