摘要: 事件: 1、事件流 描述的是从页面接收事件的顺序 IE事件流是事件冒泡流,Netscape的时间捕获 2、事件流阶段 (1)事件捕获阶段 (2)处于目标阶段 (3事件冒泡阶段) 事件捕获阶段:从最不具体的节点(Window/document)接受事件 往具体的节点进行传播 事件冒泡阶段:从具体的节点 阅读全文
posted @ 2020-06-06 18:59 我真的是受不了 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 创建项目 django-admin startproject 项目名 创建app startapp app名 创建表 makemigration app名 migrate app名 创建超级管理员 createsuperuser 修改密码 changepassword 用户名 模糊查询 contai 阅读全文
posted @ 2020-06-01 18:39 我真的是受不了 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 图片切换效果 <body> <div id="box"> <img src="image/image1.jpg" alt="" id="tu"> </div> <button id="prev">上一页</button> <button id="next">下一页</button> </body> 阅读全文
posted @ 2020-05-22 21:40 我真的是受不了 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 获取单个对象节点 // 获取单个对象 document.getElementById("box");// 获取多个节点 var x = document.getElementsByClassName("box"); nodename属性 // nodename属性 // nodename // no 阅读全文
posted @ 2020-05-20 19:43 我真的是受不了 阅读(245) 评论(0) 推荐(0) 编辑
摘要: window对象 window.alert(); //弹出确定窗口 window.confirm(); //弹出确定取消窗口 并返回True flase值 window.prompt(); //弹出确定取消并带文本框窗口 定时器方法 //定时器方法 window.setTimeout(functio 阅读全文
posted @ 2020-05-20 12:39 我真的是受不了 阅读(252) 评论(0) 推荐(0) 编辑
摘要: js文件的引入 <!-- js文件的引入 --> <script type="text/javascript" src="js/java.js"></script> js的变量类型 // js 的变量类型 //Number var x = 1; var x = 1.1; //String var n 阅读全文
posted @ 2020-05-18 21:36 我真的是受不了 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 伪类 a:hover{ /*鼠标悬浮后的状态*/ color: red; } a:link{ /*单击前的状态*/ color: green; } a:visited{ /*单击后的状态*/ color: #f8f8 }a:active{ /*鼠标按住的状态*/ color: purple;} 设置 阅读全文
posted @ 2020-05-15 22:21 我真的是受不了 阅读(158) 评论(0) 推荐(0) 编辑
摘要: p:便签,存放文字 em:斜体 strong:加粗 br:换行 &nbsp; :空格 hr :水平分割线 ul:无序列表 ol:有序列表 dl :自定义列表 {dt:标题 dd:内容} 表格: <table> # <caption>标题</caption> #表格标题 <tr> #行 <th>表头< 阅读全文
posted @ 2020-05-14 19:46 我真的是受不了 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 散点图绘制 from matplotlib import pyplot as plt import random from matplotlib import font_manager myfont = font_manager.FontProperties(fname="C:\Windows\Fo 阅读全文
posted @ 2020-04-23 22:14 我真的是受不了 阅读(494) 评论(0) 推荐(0) 编辑
摘要: 1、导入模块 from matplotlib import pyplot as plt 2、设置x,y的参数 x = range(2,26,2) y = [15,13,14,5,17,20,25,26,26,27,22,18] 3、绘制图片plot plt.plot(x, y) 4、显示图形 plt 阅读全文
posted @ 2020-04-23 22:06 我真的是受不了 阅读(343) 评论(0) 推荐(0) 编辑