一、Vue3.x 中的组件 组件可以拓展html标签,解决html标签构建应用的不足,Vue项目由一个一个的组件组成。 二、Vue3.x 中定义组件注册组件 1、定义一个公共的头部组件 components/header.vue <template> <header> 这是一个头部组件 </head ...
分类:
其他好文 时间:
2021-02-09 12:25:51
阅读次数:
0
模板字符串(template string)是增强版的字符串,用反引号(`)标识。它可以当作普通字符串使用,也可以用来定义多行字符串,或者在字符串中嵌入变量。 $('#result').append(` There are <b>${basket.count}</b> items in your b ...
分类:
其他好文 时间:
2021-02-09 11:57:00
阅读次数:
0
一、概述 在项目,需要使用一个功能,点击某个按钮,展开/隐藏 某些说明文字。 二、项目演示 新建一个vue项目,安装ElementUI 模块即可。 新建test.vue <template> <div style="width: 70%;margin-left: 30px;margin-top: 3 ...
分类:
其他好文 时间:
2021-02-08 12:11:26
阅读次数:
0
项目githup地址https://github.com/shengbid/echarts-series 效果图 实现步骤 1.下载地图json数据到项目中,我的地图下载地址http://datav.aliyun.com/tools/atlas/#&lat=30.316551722910077&ln ...
分类:
其他好文 时间:
2021-02-06 11:53:21
阅读次数:
0
代码: <template> <div id="app"> <div @click="initMap" id="main"></div> <div @click="reLoad" class="re-load"> <i class="el-icon-refresh-right"></i> </div ...
分类:
其他好文 时间:
2021-02-04 11:53:58
阅读次数:
0
引子: flask模板语言通过插件 jinja2 来支持,使用方法和django基本一致 代码: python代码 # -*- coding: utf-8 -*- from flask import Flask,render_template,Markup app=Flask(__name__) " ...
分类:
其他好文 时间:
2021-02-02 11:28:57
阅读次数:
0
具体报错信息: 1 Whitelabel Error Page 2 This application has no explicit mapping for /error, so you are seeing this as a fallback. 3 4 Mon Feb 01 21:33:07 C ...
分类:
移动开发 时间:
2021-02-02 11:27:59
阅读次数:
0
模板方法Template Method模式 在稳定的整体操作结构中,子步骤可以进行变化来满足需求 template_lin.cpp 1 //程序库开发人员 2 class Library{ 3 4 public: 5 void Step1(){ 6 //... 7 } 8 9 void Step3( ...
分类:
其他好文 时间:
2021-02-02 10:38:07
阅读次数:
0
art-template 模板引擎: 中文文档:http://aui.github.io/art-template/zh-cn/docs/ 既支持ejs 的语法,也可以用自己的类似angular 数据绑定的语法 在 koa 中使用 art-template 模板引擎: npm install --s ...
分类:
其他好文 时间:
2021-02-01 11:57:14
阅读次数:
0
实际项目用到了,记录一下,也方便以后使用,这样也可以避免为了使用一个switch,引入整个外部web框架; 也可以方便更好的理解是和使用less。 基础代码使用的是网上的,然后自己添加了less换肤,修改了样式。 代码如下: <template> <div :class="{'theme-dange ...
分类:
其他好文 时间:
2021-01-30 11:52:48
阅读次数:
0