上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 60 下一页

2017年2月23日

解决Django中在.js文件中用ajax请求后端,找不到CSRF问题

摘要: function getCookie(name) { var cookieValue = null; if (document.cookie && document.cookie !== '') { var cookies = document.cookie.split(';'); for (var i = 0; i < cookies.lengt... 阅读全文

posted @ 2017-02-23 18:02 星河赵 阅读(1525) 评论(0) 推荐(0)

2017年2月20日

jQuery判断当前元素是第几个元素&获取第N个元素

摘要: 假设有下面这样一段HTML代码: jQuery判断当前元素是第几个元素 如果我们点击任何一个li标签,想知道当前点击的是第几个li标签,可以使用下面的代码: 如上面的jQuery代码,如果点击的第一个会提示”0″,如果是第二个li标签会提示”1″,注意索引序列号是从0开始的。 jQuery 获取第N 阅读全文

posted @ 2017-02-20 15:56 星河赵 阅读(86658) 评论(0) 推荐(2)

2017年2月10日

python 判断字符串是否为空用什么方法?

摘要: s=' ' if s.strip()=='': print 's is null' 或者 if not s.strip(): print 's is null' 阅读全文

posted @ 2017-02-10 16:47 星河赵 阅读(169671) 评论(0) 推荐(0)

jq 跳转方式汇总

摘要: 按钮式: 链接式: 返回上一步 ">返回上一步 直接跳转式:(登录用过) 开新窗口: 布丁 足迹 阅读全文

posted @ 2017-02-10 12:30 星河赵 阅读(1848) 评论(0) 推荐(0)

2017年1月28日

ubuntu怎用使用命令搜索软件源中的软件

摘要: 转自:http://jingyan.baidu.com/article/6d704a13f6bf1b28da51ca69.html sudo apt-get autoremove nginx 卸载软件且不保留配置 ubuntu中是用apt-get来进行软件安装的,我们首先打开终端来查看一下apt-g 阅读全文

posted @ 2017-01-28 00:43 星河赵 阅读(2597) 评论(0) 推荐(0)

2017年1月26日

解决 windows10和ubuntu16.04双系统下时间不对的问题

摘要: 阅读全文

posted @ 2017-01-26 22:55 星河赵 阅读(180) 评论(0) 推荐(0)

2017年1月25日

ubuntu16.04中文乱码解决方案

摘要: 把环境变量设置为中文 [plain] view plain copy </pre><pre name="code" class="plain">sudo vi /etc/default/locale [plain] view plain copy [plain] view plain copy 修改 阅读全文

posted @ 2017-01-25 21:25 星河赵 阅读(4894) 评论(0) 推荐(0)

2017年1月19日

(Python mysql驱动的解决)_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h':问题的解决

摘要: 在win7下安装了Python后,想安装python-MySQL,使用pip安装出现如下问题: >pip install MySQL-python _mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': 阅读全文

posted @ 2017-01-19 10:23 星河赵 阅读(3617) 评论(0) 推荐(0)

2017年1月18日

SQL语句的一些基本使用以及一些技巧

摘要: #SELECT 列名1, 列名2, from 表明 #SELECT id,title,content,type from news 效率相对较高#SELECT * from news *代表所有字段,效率相对较低#SELECT * from news where id = 1 查询出id=1#SEL 阅读全文

posted @ 2017-01-18 16:01 星河赵 阅读(391) 评论(0) 推荐(0)

2017年1月14日

ubuntu16系统中pycharm下使用git将代码提交到github仓库

摘要: 1、在系统中安装git,在terminal中输入以下命令 sudo apt-get update sudo apt-get install git 2、对git进行配置,在terminal中输入以下命令 git config --global user.name "Your Name" git co 阅读全文

posted @ 2017-01-14 14:57 星河赵 阅读(932) 评论(0) 推荐(0)

上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 60 下一页

导航