注:使用时注释去掉 研究很久,找了很多文章,发现这篇最有用,给需要的同学吧! ".prettierrc文件常见配置" ...
分类:
其他好文 时间:
2020-04-11 23:55:39
阅读次数:
456
这几天一直做优化的事情,对于资源这一块优化,资源异步加载作为首选,因2018之后版本中弃用了WWW请求,所以今天我们以UnityWebRequest请求方式介绍,基本上是一个整理。usingSystem.Collections;usingSystem.Collections.Generic;usingUnityEngine;usingUnityEngine.Networking;publiccla
分类:
编程语言 时间:
2020-04-11 09:48:43
阅读次数:
87
一、pygal(图表类型Bar)将使用Python可视化包Pygal来生成可缩放的矢量图形文件pygal官方文档:[www.pygal.org/en/stable/](http://www.pygal.org/en/stable/)1、安装pygalpipinstallpygal-ihttps://pypi.tuna.tsinghua.edu.cn/simple2、简单的python图表impor
分类:
编程语言 时间:
2020-04-11 09:44:20
阅读次数:
104
1. 在vue-router中使用import()来代替require.ensure()懒加载实现代码打包分离 const Foo = () => import(/* webpackChunkName: "group-foo" */ './Foo.vue') const Bar = () => im ...
分类:
其他好文 时间:
2020-04-11 09:43:10
阅读次数:
58
组件:第一个参数传入出发方法的名字,第二个参数传入需要传入的参数 this.triggerEvent('timeUpdate',{ currentTime }) 页面:bind:xxx, xxx为传入的方法 也可以直接bindxxx <l-progress-bar bindtimeUpdate="t ...
分类:
微信 时间:
2020-04-10 11:54:49
阅读次数:
129
一、单继承下的属性查找 现在子类中找,子类没有到父类找 实例一、 class Foo: def f1(self): print('Foo.f1')? def f2(self): print('Foo.f2') self.f1() # obj.f1()?class Bar(Foo): def f1(s ...
分类:
其他好文 时间:
2020-04-10 00:37:01
阅读次数:
77
类型:String,默认值:无 通常你需要在表格的每一行加上 查看、编辑、删除 这样类似的操作按钮,而 tool 参数就是为此而生,你因此可以非常便捷地实现各种操作功能。tool 参数和 templet 参数的使用方式完全类似,通常接受的是一个选择器,也可以是一段HTML字符。 table.rend ...
分类:
其他好文 时间:
2020-04-09 10:48:04
阅读次数:
545
1. 创建子组件swiper-tab-head.vue 2. 剪切vue代码和css代码 vue代码: <template> <view class="uni-tab-bar"> <!-- 横向滚动布局 --> <scroll-view scroll-x class="uni-swiper-tab" ...
分类:
其他好文 时间:
2020-04-07 22:51:04
阅读次数:
129
在page目录下新建一个tabbar文件夹 在tabbar.wxml中: <template name="tabBar"> <view class="tab-bar" style="color: {{tabBar.color}}; background: {{tarBar.backgroundCol ...
分类:
微信 时间:
2020-04-07 12:26:54
阅读次数:
96
实现页面样式: 前端代码: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <t ...
分类:
Web程序 时间:
2020-04-06 20:33:02
阅读次数:
87