Uniapp 开发记录
Posted on
Canvas
Posted on
canvas
创建高清的 canvas
1 | const createHDCanvas = (w, h) = >{ |
code
Posted on
常用代码
test
Posted on
wheel ui
Posted on
随手记 React 总结
Posted on
随手记 Vue 总结
Posted on
Vue 组件的三种方式(单文件组件)
用 JS 对象
1
export default { data, props, methods, created, ...}
用 TS 类
<script lang="ts">
1
2
3
4
5@Component
export default class XXX extends Vue{
xxx: string = 'hello';
@Prop(Number) xxx: number | undefined;
}用 JS 类
<script lang="js">
1
2
3
4@Component
export default class XXX extends Vue{
xxx = 'hi'
}
Web性能优化常见技巧
Posted on