插件的基本作用就是生成html文件,原理很简单: 将 webpack 中 entry 配置的相关入口 chunk 和 extract-text-webpack-plugin 抽取的 css 样式 插入到该组件提供的 template 或者 templateContent 配置项指定的内容基础上生成一 ...
分类:
Web程序 时间:
2020-05-25 17:36:42
阅读次数:
166
玩转Pod调度 Deployment或RC:全自动调度 apiVersion: apps/v1beta1 kind: Deployment metadata: name: nginx-deployment spec: replicas: 3 template: metadata: labels: a ...
分类:
Web程序 时间:
2020-05-25 17:31:45
阅读次数:
58
vue移动端转场动画 1.介绍:使用vue移动端做项目的时候,为了用户的体验良好,我们需要页面有一种进入和转出的效果 // 在App.vue根组件中 <template> <div id="app"> <transition :name="transitionName"> <router-view ...
分类:
移动开发 时间:
2020-05-25 15:53:39
阅读次数:
114
1、创建使用ts的新项目 yarn create react-app my-test-app --template typescript 2、配置tsconfig.json (1)在根目录下新建文件tsconfig.extend.json { "compilerOptions": { "baseUr ...
分类:
移动开发 时间:
2020-05-25 15:39:10
阅读次数:
455
1 <Style TargetType="{x:Type local:Gauge_OnlyPointe}"> 2 <Setter Property="Template"> 3 <Setter.Value> 4 <ControlTemplate TargetType="{x:Type local:Ga ...
1. 列表 样式切换 <template> <div class="homeContainer"> <ul class="headList"> <li class="item" v-for="item in navList" :key="item.id" :class="{'active': cur ...
分类:
其他好文 时间:
2020-05-24 00:45:25
阅读次数:
49
一、初始化一个vue项目 vue init webpack vuemqtt npm install npm run dev 二、安装mqtt npm install mqtt --save 三、编写vue组件 1 <template> 2 <div id="app"> 3 <p>mqtt收到的数据: ...
分类:
其他好文 时间:
2020-05-23 20:17:56
阅读次数:
193
如果直接分配到模板中html的字符串 , 会被转码 , 需要强制把字符串转换成template.HTML类型 , 例如下面这样: header := tools.FileGetContent("html/header.html") html := tools.FileGetContent("html ...
分类:
Web程序 时间:
2020-05-23 18:29:46
阅读次数:
65
如何在spring-boot中使用Redis工具类 修改pom.xml文件 新增spring-boot-starter-data-redis配置 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-b ...
分类:
编程语言 时间:
2020-05-22 19:48:16
阅读次数:
50
一开始用别人封装好的W-picker进行时间日期选择,后来测试的时候发现IOS系统不兼容,后改成原生picker去选择 完整代码 <template> <view class="container"> <view class="uni-padding-wrap uni-common-mt"> <fo ...
分类:
其他好文 时间:
2020-05-22 15:37:48
阅读次数:
62