ICode9

精准搜索请尝试: 精确搜索
  • VUE开发者必须知道的实用技术点!2021-05-28 14:00:57

    前言 vue 作为目前前端三大框架之一,对于前端开发者可以说是必备技能。掌握这些实用小技巧,可以让你事半功倍。 1、路由懒加载,能让你首次加载更快 路由懒加载可以让我们的包不需要一次把所有的页面的加载进来,只加载当前页面的路由组件就行。 举个栗子

  • vue-cli开发todoList2021-05-27 20:02:52

    接着上一篇,使用vue-cli创建项目后,然后用vscode打开项目,vscode感觉跟其他的IDE不同,它对项目的管理较松散,更多是靠各类插件去完成工作。下图是vscode打开vue-cli创建的项目的项目结构截图:      其实从这个结构上可以看出,主页面就是index.html位于项目根目录下,src目录下就是程序

  • Uni-app父组件如何调用子组件的方法 | 父页面如何调用子页面的方法2021-05-27 11:02:54

    假设子组件里有这么一个方法 methods:{ showDiv(){ this.release = true; } } 在父组件引用子组件时绑定 <unio2o-release-message-alert ref="unio2oReleaseMessageAlert" ></unio2o-release-message-alert> <script

  • vue-生命周期2021-05-25 12:32:27

    <template>   <div class="hello">       <p v-show="isShow" style="color:red;font-size:25px;">{{str1}}</p>       <p v-show="!isShow" style="color:green;font-size:25px;">{{str2}

  • Linux命令:如何将多个文件及文件夹压缩为一个压缩文件2021-05-19 12:32:17

    1、如何将多个文件及文件夹压缩为一个压缩文件   问题:我要把这些文件压缩为一个压缩文件   解决方案:linux命令 — tar命令:https://www.runoob.com/linux/linux-comm-tar.html PS D:\nuxtrun\test> tar czvf dev.tar.gz .\nuxt.config.js .\package.json .\package-lock.json

  • Vue 中自定义封装组件2021-05-13 16:31:50

    以下内容为自定义封装的一个小button按钮,这种自定义组件最好是放在components 文件夹下面 <template> <div> <button>牛</button> </div> </template> <script> export default { data() { return { }; }, mounted() { },

  • v-on="$listeners"和v-bind="$attrs"2021-05-06 17:02:01

    常用于多层级组件之间的通信(>2层)   主要是在中间层组件使用:(注意中间层别接收需要向底层传递的参数) 高层级向底层级传值:(v-bind="$attrs") 底层级向高层级调方法:(v-on="$listeners") <template> <div> <div>{{ title }}</div> <son v-bind="$attrs" v-on="

  • VUE报错解决方法 Unknown custom element: <FileSidebar> - did you register the component correctly? Fo2021-04-30 18:02:34

    vue在组件引入组件时写成了 import {FileSidebar} from "@/components/FileSidebar/index"; 会报Unknown custom element: <FileSidebar> - did you register the component correctly? For recursive components, make sure to provide the "name" option.的错误

  • 使用Painter 画板生成自定义海报2021-04-30 17:02:12

    首先使用Hbuilder导入插件 然后引用import lPainter from '@/uni_modules/lime-painter/components/lime-painter/'   base自定义画板内容    

  • SAP License:SAP FI/CO—Questions and Answers2021-04-29 11:32:17

    SAP Basics 12 1 What is ‘SAP”? 12 2 Tell Me More About (The History Of) SAP 13 3 What are the ‘Solutions’ Currently Available from SAP? 13 4 What are the Components of the ‘SAP ERP’ Solution? 13、 5 What is the Significance of the ‘SAP NetWeaver

  • jeecgboot内容过长省略号2021-04-28 18:03:47

    引入import JEllipsis from ‘@/components/jeecg/JEllipsis’        

  • 2021-04-242021-04-24 10:00:16

    调用百度地图插件vue-baidu-map,实现个性化百度地图 JavaScript API支持的个性化地图服务有两个版本,旧版个性化地图服务(Map.setMapStyle接口)已经不再更新。 在使用vue-baidu-map插件的基础上,使用个性化百度地图,解决办法如下: 1.将node_modules/veu-baidu-map/components 整个文件

  • 二)NextJS集成Styled Components2021-04-23 23:04:47

    打开前一篇中建立的NextJS项目,添加以下依赖: npm install babel-plugin-styled-components --save-dev npm install styled-components --save 再添加以下内容: 1:touch .babelrc //添加babel配置文件 内容如下: { "presets": ["next/babel"], "plugins": [["styled

  • 对于keep-alive和 Async Components的理解2021-04-22 22:32:49

    参照Vue.js:https://vuejs.org/v2/guide/components-dynamic-async.html?#Handling-Loading-State keep-alive 希望组件的实例(例如在切换选项卡的时候)在首次创建后就被缓存 这个时候就可以使用<keep-alive> <keep-alive> <component v-bind:is="currentTabComponent"></comp

  • 18. vue-router案例-tabBar导航2021-04-09 21:34:14

    目标: 做一个导航tabbar 一. 分析 我们的目标是做一个导航tabbar, 要求 这个导航不仅可以在一个页面使用, 可以在多个页面通用 每个页面的样式可能不一样 每个页面的图标, 文字可能不一样 每个页面导航的个数可能不一样 要想实现上面的情况, 需要进行功能拆解: 提炼出一个通用

  • uniapp表单方面组件(uview)2021-04-01 10:58:38

    表单方面组件(uview) 官网:[https://www.uviewui.com](https://www.uviewui.com) uni-app插件市场地址:https://ext.dcloud.net.cn/plugin?id=1593 在官网的组件里面安装这里可以查看安装说明,安装完成后可以在配置的地方查询相关配置。 2.2.1、安装 直接到uniapp插件市场去下载

  • Vue后台管理系统2021-03-31 13:33:51

    Vue后台管理系统 文章目录 Vue后台管理系统前言一、项目概述1.1 电商项目基本业务概述1.2 电商后台管理系统的功能1.3 电商后台管理系统的开发模式(前后端分离) 二、项目初始化2.1 `通过 Vue 脚手架创建项目`2.1.1 配置 Vue 路由 `插件要选择Router`2.1.2 配置 Element-UI 组

  • styled-components怎么用2021-03-29 19:30:58

    先安装 npm install --save styled-components创建样式组件 style.js 表示一个组件元素div import styled from 'styled-components' export const HomeWrapper = styled.div` width: 960px; margin: 0 auto; height: 300px; background: red; ` 使用样式组件 // 先

  • 「Vue — 插件」百度地图vue-baidu-map2021-03-17 10:04:19

    官方 https://dafrok.github.io/vue-baidu-map/#/zh/start/installation 申请密钥 http://lbsyun.baidu.com/apiconsole/key 自动生成器 http://api.map.baidu.com/lbsapi/creatmap/index.html 大佬例子 https://www.cnblogs.com/jiekzou/p/10485604.html 示例: $ npm install vu

  • Uni-app父组件如何调用子组件的方法 | 父页面如何调用子页面的方法2021-03-12 21:34:18

    假设子组件里有这么一个方法 methods:{ showDiv(){ this.release = true; } } 在父组件引用子组件时绑定 <unio2o-release-message-alert ref="unio2oReleaseMessageAlert" ></unio2o-release-message-alert> <script

  • 基于vue-baidu-map封装地图组件,实现可搜索功能2021-03-12 12:02:15

    基于vue-baidu-map封装地图组件,实现可搜索功能 前言:在vue项目中引入vue-baidu-map,封装BaiduMap组件,实现点击搜索按钮,展开搜索栏,根据搜索信息展示结果列表。通过点击,定位到地图上。 文章目录 基于vue-baidu-map封装地图组件,实现可搜索功能一、按需引入vue-baidu-map1.安装2.

  • 2020 BIT冬训-C++图&&DFS&&BFS J - Cyclic Components CodeForces - 977E2021-03-04 19:01:29

    Problem Description You are given an undirected graph consisting of nn vertices and mm edges. Your task is to find the number of connected components which are cycles. Here are some definitions of graph theory. An undirected graph consists of two sets: se

  • React使用styled-components进行样式初始化(reset.css)2021-02-28 16:03:14

    第一步先安装 styled-components 第二步创建style.js(在src目录下) import { createGlobalStyle } from ‘styled-components’; export const GlobalStyle = createGlobalStylehtml, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,

  • 组件之间,导入注册关系2021-02-24 23:35:38

    1、子组件导入父组件     1、在父组件中,import 引入子组件 import QuePage from "../components/QuePage";     2、在父组件中,注册子组件(必须要注册) export default { components: { QuePage } };注意:必须要写入到 components: {} 里面去 2、导入vue 插件(比

  • vue 自定义attribute继承2021-02-21 21:32:04

    vue 自定义attribute继承 1.子组件 <template>   <div class="dataPicker">       <input type="date" v-bind="$attrs" />   </div> </template> <script> export default {     inheritAttrs:false, //默认是根节点继

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有