会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
itcast-guoke
博客园
首页
新随笔
联系
订阅
管理
2021年1月6日
angular中的:class的使用
摘要: [ngClass]="{'green': flag, 'orange': !flag}"
阅读全文
posted @ 2021-01-06 09:22 itcast-yeguoke
阅读(181)
评论(0)
推荐(0)
编辑
Vue中的:class的使用
摘要: 一个样式 :class="{'green':flag}" 或者 :class="status!=''?'green':''" 多个样式 :class="[status!=''?'green':'',flag==false?'orange':'', 'blood']"
阅读全文
posted @ 2021-01-06 09:20 itcast-yeguoke
阅读(1989)
评论(0)
推荐(0)
编辑
2020年12月23日
audio 音乐自动播放,循环播放,隐藏等
摘要: https://www.runoob.com/html/html-sounds.html audio播放音乐 最好的 HTML 解决方法 下面的例子使用了两个不同的音频格式。HTML5 <audio> 元素会尝试以 mp3 或 ogg 来播放音频。如果失败,代码将回退尝试 <embed> 元素。 <
阅读全文
posted @ 2020-12-23 11:22 itcast-yeguoke
阅读(1745)
评论(0)
推荐(0)
编辑
2020年12月18日
vue放大缩小视图窗口按钮
摘要: 第一步:在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
阅读(1598)
评论(1)
推荐(0)
编辑
js获取显示器、页面等高度 (转)
摘要: 网页可见区域宽:document.body.clientWidth网页可见区域高:document.body.clientHeight网页可见区域宽:document.body.offsetWidth (包括边线的宽)网页可见区域高:document.body.offsetHeight (包括边线的
阅读全文
posted @ 2020-12-18 14:53 itcast-yeguoke
阅读(157)
评论(0)
推荐(0)
编辑
2020年8月23日
在 vue 中添加错误与成功提示的代码段
摘要: // 失败的 { "Print to console": { "prefix": "err", "body": [ "this.\\$message.error('')" ], "description": "Log output to console" } } // 成功的 { "Print to
阅读全文
posted @ 2020-08-23 12:21 itcast-yeguoke
阅读(776)
评论(0)
推荐(0)
编辑
在 vue 中添加初始化代码段
摘要: { // 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
阅读(322)
评论(0)
推荐(0)
编辑
2020年5月19日
学习react基本语法初始化webpack.pub.config.js
摘要: const path = require('path') const htmlWebpackPlugin = require('html-webpack-plugin') // 导入每次删除文件夹的插件 const cleanWebpackPlugin = require('clean-webpac
阅读全文
posted @ 2020-05-19 23:52 itcast-yeguoke
阅读(161)
评论(0)
推荐(0)
编辑
学习react基本语法初始化webpack.config.js
摘要: 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
阅读(221)
评论(0)
推荐(0)
编辑
学习react基本语法初始化package.json
摘要: { "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
阅读(254)
评论(0)
推荐(0)
编辑
下一页
公告