centos7下安装python3.7
摘要:记录在2018年最后一个工作日: Linux环境坑爹得要死,环境本身有python2和python3.7两个版本;安装django2的时候,发现默认是python2;把python软连接到python3.7,然后开始各种奇葩报错。。。。。。接着开始2天的草泥马寻找问题之路。 最后怎么解决的?重新下载
阅读全文
posted @
2018-12-29 22:53
蛋尼
阅读(220)
推荐(0)
centos下查看python的安装目录
摘要:直接用python命令,打印sys的path即可:
阅读全文
posted @
2018-12-29 15:00
蛋尼
阅读(13704)
推荐(0)
vue全局变量定义和修改
摘要:1. 只读的全局变量 对于只读的全局变量,知道的有以下两种使用方式: 1)global.js 模块中定义;其他模块import后再使用即可 1.1)定义 1.2)引用 2)gobal.js 模块中定义,并绑定到 prototype,其他任何Vue实例可直接引用 this.$xxxx 2.1)定义,绑
阅读全文
posted @
2018-12-28 14:30
蛋尼
阅读(20259)
推荐(0)
vue格式化显示json数据
摘要:已经是json格式数据的,直接用标签 <pre></pre>展示。 参考:https://www.jianshu.com/p/d98f58267e40
阅读全文
posted @
2018-12-27 18:46
蛋尼
阅读(2731)
推荐(0)
javascript cookie 操作
摘要:function getCookie(cname) { let name = cname + "="; let ca = document.cookie.split(';'); for (let i = 0; i < ca.length; i++) { let c = ca[i].trim(); i
阅读全文
posted @
2018-12-26 18:06
蛋尼
阅读(125)
推荐(0)
bootsrap Collapse用法
摘要:collapse用处还是挺多的。 使用方法先看看bootstrap官方文档:https://v3.bootcss.com/javascript/#collapse You can use a link with the href attribute, or a button with the dat
阅读全文
posted @
2018-12-14 14:50
蛋尼
阅读(267)
推荐(0)
django form 的内置字段类型
摘要:定义的form类如下: 1 常用的类型有:ChoiceField IntegerField 等 2 可以用widget指定窗口部件:widget=widgets.TextInput 等 3 widgets.attr 设置标签属性:attrs={'size': '30'} 参考: django-for
阅读全文
posted @
2018-12-12 14:25
蛋尼
阅读(252)
推荐(0)
js/jquery this 坑
摘要:重要:js onclick() 函数中,取不到this !!! 错误的写法: 正确的写法是:函数定义时带参数,调用时传入this <button onclick="test(this)">
阅读全文
posted @
2018-12-09 00:27
蛋尼
阅读(109)
推荐(0)
mysql 累加求和
摘要:参考:https://blog.csdn.net/qcyfred/article/details/78045857
阅读全文
posted @
2018-12-04 16:16
蛋尼
阅读(595)
推荐(0)