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