09 2020 档案

摘要:1. 禁用 yum插件 fastestmirror 1)修改插件的配置文件 # cp /etc/yum/pluginconf.d/fastestmirror.conf /etc/yum/pluginconf.d/fastestmirror.conf.bak # vi /etc/yum/pluginc 阅读全文
posted @ 2020-09-21 17:32 明明一颗大白菜 阅读(386) 评论(0) 推荐(0) 编辑
摘要:function mix(...mixins) { class Mix { constructor() { for (let mixin of mixins) { copyProperties(this, new mixin()); // 拷贝实例属性 } } } for (let mixin of 阅读全文
posted @ 2020-09-16 17:54 明明一颗大白菜 阅读(235) 评论(0) 推荐(0) 编辑
摘要:worker_script.js: const workerCode = () => { self.onmessage = (e) => { setInterval(() => { // 自己的逻辑代码 },e.data); }; }; let code = workerCode.toString( 阅读全文
posted @ 2020-09-16 17:10 明明一颗大白菜 阅读(247) 评论(0) 推荐(0) 编辑
摘要:给父元素加上 transform属性,fixed即可根据父容器定位。 阅读全文
posted @ 2020-09-08 14:26 明明一颗大白菜 阅读(1158) 评论(0) 推荐(0) 编辑
摘要:新建一个worker.js文件,编写worker子线程脚本,代码如下: const workercode = () => { self.onmessage = function(e) { console.log('Message received from main script'); var wo 阅读全文
posted @ 2020-09-01 19:26 明明一颗大白菜 阅读(3421) 评论(1) 推荐(0) 编辑
摘要:看一些资料,reserse的导入是这样写的: from django.core.urlresolvers import reverse 但是IDE会进行报错,因为这是2.0之前的写法,2.0之后的写法为: from django.urls import reverse 阅读全文
posted @ 2020-09-01 08:13 明明一颗大白菜 阅读(434) 评论(0) 推荐(0) 编辑
摘要:在使用url的时候,有些地方是这样写的: url(r'^blog/', include('blog.urls', namespace='blog',app_name='blog')) 但是会报错: Specifying a namespace in include() without providi 阅读全文
posted @ 2020-09-01 07:57 明明一颗大白菜 阅读(362) 评论(0) 推荐(0) 编辑

<-- -->
点击右上角即可分享
微信分享提示