Blog

Page 10 Create a Blog

解决pip 安装源被墙或者ssl的问题

pip3 install pymysql -i http://pypi.douban.com/simple/ --trusted-host ……

By 肖奈
5822 read

pip 修改安装源 一劳永逸

临时使用: Markup -i http://pypi.douban.com/simple/ --trusted-host……

By 肖奈
5532 read

pip 安装pycrypto神坑

# 1. 解决no vc ++ 下载安装(http://pan.baidu.com/s/1eSue……

By 肖奈
5463 read

jq 与cookie的结合

jquery之cookie操作Cookies定义:让网站服务器把少量数据……

By 肖奈
4432 read

PHP date()函数警告: It is not safe to rely on the system解决方法

第一种在页面头部加入以下语句date_default_timezone_set("P……

By 肖奈
4698 read

Django框架之第三篇模板语法(重要!!!)

一、什么是模板?只要是在html里面有模板语法就不是……

By Heanny
2559 read

提高mysql千万级大数据SQL查询优化30条经验(Mysql索引优化注意)

 转自http://blog.163.com/zhangjie_0303/blog/static/990827062014……

By 肖奈
5929 read

bootstrap-switch 获取开关状态

$(‘#switcher‘).bootstrapSwitch(‘state‘); // true || false $(‘#switcher‘).bootstrapSwitch(‘toggleState‘); $(‘#switcher‘).bootstrapSwitch(‘setState‘, false); // true || false……

By Heanny
5112 read

bootstrap switch使用

bootstrap-switch属性js属性名html属性名类型描述取值范围默认值statecheckedBoolean选中状态true、falsetruesizedata-sizeString开关大小null、mini、small、normal、largenullanimatedata-animateBoolean动画效果true、falsetruedisableddisabledBoolean禁用开关ture、falsefalsereadonlyreadonlyBoolean开关状态只读,不能修改true、falsefalseindeterminatedata-indeterminateBoolean模态true、falsefalseinversedata-inverseBoolean颠倒开关顺序true、falsefalseradioAllOffdata-radio-all-offBoolean允许单选按钮被用户取消选中true、falsefalseonColordata-on-colorString左侧开关颜色primary、info、success、warning、danger、defaultprimaryoffColordata-off-colorString右侧开关颜色primary、info、success、warning、danger、defaultdefaultonTextdata-on-textString左侧开关显示文本StringONoffTextdata-off-textString右侧开关显示文本StringOFFlabelTextdata-label-textString开关中间显示文本String handleWidthdata-handle-widthString|Number开关左右2侧的宽度String|NumberautolabelWidthdata-label-widthString|Number开关中间的宽度String|NumberautobaseClassdata-base-classString开关基础样式Stringbootstrap-switchwrapperClassdata-wrapper-classString | Array元素样式容器String | ArraywrapperonInit function初始化开关Functionfunction(event,state){}onSwitchChange function当开关状态改变时触发Functionfunction(event,state){}……

By Heanny
3984 read

【zabbix】硬盘满了的问题

情况概述 当你使用了好久的zabbix突然给你发邮件告诉你处事的时候,多半是硬盘满了。 你应该扩……

By Heanny
3500 read