摘要: [ngClass]="{'green': flag, 'orange': !flag}" 阅读全文
posted @ 2021-01-06 09:22 itcast-yeguoke 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 一个样式 :class="{'green':flag}" 或者 :class="status!=''?'green':''" 多个样式 :class="[status!=''?'green':'',flag==false?'orange':'', 'blood']" 阅读全文
posted @ 2021-01-06 09:20 itcast-yeguoke 阅读(1979) 评论(0) 推荐(0) 编辑
摘要: https://www.runoob.com/html/html-sounds.html audio播放音乐 最好的 HTML 解决方法 下面的例子使用了两个不同的音频格式。HTML5 <audio> 元素会尝试以 mp3 或 ogg 来播放音频。如果失败,代码将回退尝试 <embed> 元素。 < 阅读全文
posted @ 2020-12-23 11:22 itcast-yeguoke 阅读(1654) 评论(0) 推荐(0) 编辑
摘要: 第一步:在template中写 <el-tooltip effect="dark" :content="fullscreen ? `取消全屏` : `全屏`" placement="bottom"> <i class="el-icon-rank"></i> </el-tooltip> 第二步:在sc 阅读全文
posted @ 2020-12-18 15:04 itcast-yeguoke 阅读(1590) 评论(1) 推荐(0) 编辑
摘要: 网页可见区域宽:document.body.clientWidth网页可见区域高:document.body.clientHeight网页可见区域宽:document.body.offsetWidth (包括边线的宽)网页可见区域高:document.body.offsetHeight (包括边线的 阅读全文
posted @ 2020-12-18 14:53 itcast-yeguoke 阅读(157) 评论(0) 推荐(0) 编辑
摘要: // 失败的 { "Print to console": { "prefix": "err", "body": [ "this.\\$message.error('')" ], "description": "Log output to console" } } // 成功的 { "Print to 阅读全文
posted @ 2020-08-23 12:21 itcast-yeguoke 阅读(775) 评论(0) 推荐(0) 编辑
摘要: { // Place your 全局 snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and // description. Add comma separated i 阅读全文
posted @ 2020-08-23 12:15 itcast-yeguoke 阅读(321) 评论(0) 推荐(0) 编辑
摘要: const path = require('path') const htmlWebpackPlugin = require('html-webpack-plugin') // 导入每次删除文件夹的插件 const cleanWebpackPlugin = require('clean-webpac 阅读全文
posted @ 2020-05-19 23:52 itcast-yeguoke 阅读(160) 评论(0) 推荐(0) 编辑
摘要: const path = require('path') const htmlWebpackPlugin = require('html-webpack-plugin') module.exports = { entry: path.join(__dirname, './src/main.js'), 阅读全文
posted @ 2020-05-19 23:37 itcast-yeguoke 阅读(220) 评论(0) 推荐(0) 编辑
摘要: { "name": "webpack-senior", "version": "1.0.0", "description": "", "main": "webpack.config.js", "scripts": { "test": "echo \"Error: no test  阅读全文
posted @ 2020-05-19 23:35 itcast-yeguoke 阅读(251) 评论(0) 推荐(0) 编辑