2016年12月19日

jquery checkbox的相关操作——全选、反选、获得所有选中的checkbox

摘要: 1、全选 $("#btn1").click(function(){ $("input[name='checkbox']").attr("checked","true"); }) 2、取消全选(全不选) $("#btn2").click(function(){ $("input[name='check 阅读全文

posted @ 2016-12-19 10:14 星河赵 阅读(632) 评论(0) 推荐(0)

2016年12月14日

Linux 命令行模式 你需要知道的那些事

摘要: 注: 安装软件 pip install + 软件名 例如: pip install xadmin 卸载软件 pip uninstall + 软件名 例如 pip uninstall xadmin 安装软件 sudo apt-get install .....(点点为程序名称) 卸载软件 sudo a 阅读全文

posted @ 2016-12-14 20:22 星河赵 阅读(3848) 评论(0) 推荐(0)

解决 Django 后台上传图片前端无法展示

摘要: 阅读全文

posted @ 2016-12-14 15:01 星河赵 阅读(590) 评论(0) 推荐(0)

2016年12月12日

Form onsubmit 事件 阻止表单提交() 必须选中同意选项才可以提交

摘要: <!DOCTYPE html><html><head><meta charset="utf-8"><title>菜鸟教程(runoob.com)</title><script>function greeting(){ alert("Welcome " + document.forms["frm1"] 阅读全文

posted @ 2016-12-12 16:28 星河赵 阅读(912) 评论(0) 推荐(0)

2016年12月11日

Django中Form的Textarea字段

摘要: 开始以为是这个样子: [python] view plain copy class BlogForm(forms.Form): title = forms.CharField(required = True) content = forms.Textarea() [python] view plai 阅读全文

posted @ 2016-12-11 20:05 星河赵 阅读(6126) 评论(0) 推荐(1)

2016年12月9日

css实现自适应屏幕高度;

摘要: css实现自适应屏幕高度; <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> <style> body,html{ margin:0px; height:100%; } .div1 阅读全文

posted @ 2016-12-09 13:25 星河赵 阅读(14129) 评论(1) 推荐(0)

2016年12月8日

Django 1.10 找不到静态资源解决方法

摘要: 测试版本:Django 1.10 问题:Django项目找不到静态资源 解决方法: 1.首先你需要在自己的app下面创建2个目录 static 和 templates 树形结构如下(DjangoProject 是我的项目名 blogs 是app名,要创建的目录在blogs下) 1 2 3 4 5 6 阅读全文

posted @ 2016-12-08 11:59 星河赵 阅读(539) 评论(0) 推荐(0)

2016年12月5日

时间戳 JavaScript parse() 方法 处理技巧

摘要: 返回1970/01/01至2012/3/21之间的毫秒数: var d = Date.parse("March 21, 2012"); d 输出结果: 1332259200000 实例 在本例中,我们将取得从 1970/01/01 到 2012/03/21 的毫秒数: var d=Date.pars 阅读全文

posted @ 2016-12-05 12:34 星河赵 阅读(494) 评论(0) 推荐(0)

jQuery radio change事件 checkbox选中事件

摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.or 阅读全文

posted @ 2016-12-05 10:45 星河赵 阅读(903) 评论(0) 推荐(0)

JQuery中$.ajax()方法参数详解

摘要: JQuery中$.ajax()方法参数详解 JQuery中$.ajax()方法参数详解 url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。 type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和 delet 阅读全文

posted @ 2016-12-05 09:56 星河赵 阅读(445) 评论(0) 推荐(0)

导航