log-viewer
发表于|更新于
|浏览量:
心平气和则能言——朱熹
https://github.com/FEMessage/log-viewer
分享一个前端日志库

其提供了中文文档
https://github.com/FEMessage/log-viewer/blob/dev/README-zh.md
相关推荐
2025-07-05
如何写一个 react 组件
天下之事不难于立法,而难于法之必行。一一明·张居正 https://github.com/react-component/react-component.github.io/blob/master/docs/zh-cn/how-to-write-a-react-component.md 如何写一个 react 组件 author: yiminghe@gmail.com 建立组件 git 库 https://github.com/react-component 搭建脚手架 使用 https://github.com/react-component/generator-rc 搭建脚手架 目录结构12345678910- .travis.yml- examples - index.js - index.html- src - Component.jsx- index.js- tests - index.spec.js- package.json 源码 在 src 目录中写 es2015 js,在 assets 目录下写 less,在 tests 目录下写 测试用例,代码...
2023-11-23
toastify-js
无论掌握哪一种知识,对智力都是有用的,它会把无用的东西抛开而把好的东西保留住。——达·芬奇 分享一个前端消息提示组件库ToastifyJs https://github.com/apvarun/toastify-js 引入: 1npm install --save toastify-js 或者 123<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css"><script src="https://cdn.jsdelivr.net/npm/toastify-js"></script> 使用: 1Toastify({ text: "This is a toast", duration: 3000 }).showToast(); 复杂例子: 123456789101...
2022-05-18
CompositionEvent
业余生活要有意义,不要越轨。——华盛顿 分享一个输入法事件:CompositionEvent 这个事件只在用户间接输入文本(如使用输入法)时触发: 例如下面这个例子: 123456789101112131415161718192021222324252627282930313233343536<!DOCTYPE html><html><head> <title></title></head><body> <div class="control"> <label for="name">On macOS, click in the textbox below,<br> then type <kbd>option</kbd> + <kbd>`</kbd>, then <kbd>a</kbd>:</label> ...
2022-01-03
在vue中使用ts
诚实的生活方式其实是按照自己身体的意愿行事,饿的时候才吃饭,爱的时候不必撒谎。——马尔克斯《霍乱时期的爱情》 官方文档:https://www.typescriptlang.org/docs/handbook/intro.html 首先找到中文文档:https://www.tslang.cn/samples/index.html 寻找到vue.js 跳转过去后就是教程,我们跟着教程一步一步来 首先新建一个空项目 然后新建src目录和components目录 1234typescript-vue-tutorial/├─ dist/└─ src/ └─ components/ 输入命令下载依赖 1D:\file\projects\vue-ts-demo>cnpm install --save-dev typescript webpack webpack-cli ts-loader css-loader vue vue-loader vue-template-compiler 很快就下载完毕 然后初始化ts环境 1tsc --init 可以看到多出了ts配置文...
2021-11-14
mixin
所有智力方面的工作都要依赖于兴趣。——皮亚杰 如果我们需要在各个vue页面使用相同的公共元素 我们就可以使用minxin 官方文档:https://cn.vuejs.org/v2/guide/mixins.html 我们新建一个mixin.js 1234567891011121314151617181920export default { data() { return { name: 'ruben' } }, created() { console.log('this.name', this.name); // 尝试访问调用方属性 console.log('this.prefix', this.prefix); }, mounted() { console.log("mixin mounted"); }, methods: { hello() { console.l...
2023-05-09
元素下方超出换列
根本不应该为取悦别人而使自己失敬于人——卢俊 我们有时候需要这种需求:元素高度超出后换到下一列 则可以使用column-count column-count可以指定最大列数 123456column-count: 3;column-count: auto;column-count: inherit;column-count: initial;column-count: unset; 简写属性:columns 12345678910111213141516/* Column width */columns: 18em;/* Column count */columns: auto;columns: 2;/* Both column width and count */columns: 2 auto;columns: auto 12em;columns: auto auto;/* Global values */columns: inherit;columns: initial;columns: unset; 例子: HTML12345<p class="c...
