2018年4月28日
摘要: 1.事务 “事务”是一种可以保证“多条语句一次性执行完成”或“一条都不执行”的机制。 两种开始事务的方法: 1.set autocommit = 0; //false,此时不再是一条语句一个事务了,必须使用commit语句才能够生效。默认=1(true) 2.start transaction // 阅读全文
posted @ 2018-04-28 11:38 Aifeiff 阅读(303) 评论(0) 推荐(0) 编辑
2018年4月23日
摘要: 建表、数据插入代码: #新建学生表 drop table if exists student; create table student( sno varchar(20) not null primary key comment '学号', sname varchar(20) not null co 阅读全文
posted @ 2018-04-23 01:02 Aifeiff 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 1 /*注意: 2 1、字段和值要一一对应 3 2、值的数据类型是字段的数据类型 4 3、当输入的字段是表中全部字段时,字段可以省略不写: 5 insert into login values ('zhangsan',‘123’,‘张三’,1); 6 4、不是全部字段时,字段必须写(主键如不是自增必须添加): 7 insert into login(userid,password)... 阅读全文
posted @ 2018-04-23 00:55 Aifeiff 阅读(436) 评论(0) 推荐(0) 编辑
2018年4月20日
摘要: 操作关键词: 1.show //查看、展示 2.use //选择(库/表) 3.database/s //库/所有库 4.table/s //表/所有表 5.primary key //主键:不可重复,不可为空 6.unique key //唯一键:不可重复,可以为空 7.primary key(i 阅读全文
posted @ 2018-04-20 21:32 Aifeiff 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 注意事项: 符号必须为英文。 数据库操作层级: 建表大全: #新建表zuoye1;drop table if exists zuoye1;create table zuoye1( id int auto_increment not null, #字段名id,整数类型,自增长,不可为空 f1 floa 阅读全文
posted @ 2018-04-20 09:04 Aifeiff 阅读(245) 评论(0) 推荐(0) 编辑
2018年4月18日
摘要: 1.添加点击事件、each、prop、$(this) 1 //全选框的被动操作 2 //定义一个标志保存最终状态 3 var flag = false; 4 //为每一个选择框添加点击事件,数组.click() 5 $('.chex').click(function(){ 6 //遍历数组,数组.e 阅读全文
posted @ 2018-04-18 10:19 Aifeiff 阅读(265) 评论(0) 推荐(0) 编辑
2018年4月17日
摘要: jQuery基础知识 jQuery需要引入一个js文件,并且这个文件在所有js代码之前(包括引入的其他js文件) 基础操作(对比js): 1、找标签: js:document.getElement.. jquery:$(选择器); //有引号;标签名、#id、.class 比如:$("input:c 阅读全文
posted @ 2018-04-17 22:09 Aifeiff 阅读(211) 评论(0) 推荐(0) 编辑
摘要: BOM 1.Windows对象 window.open("打开的地址","打开的位置")window.opener:打开此页面的上一个页面对象window.close():关闭当前页面window.navigate("url") 跳转至目标页面(超链接),在谷歌浏览器下有bug;(不常用)windo 阅读全文
posted @ 2018-04-17 20:57 Aifeiff 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 节点创建和追加 节点创建 元素节点:document.createElement(tag标签名称); 文本节点:document.createTextNode(文本内容); 属性设置:node.setAttribute(名称,值); 节点追加: 父节点.appendChild(子节点); 父节点.i 阅读全文
posted @ 2018-04-17 20:13 Aifeiff 阅读(386) 评论(0) 推荐(0) 编辑
2018年4月16日
摘要: 整理: 1.cursor: not-allowed;红色圆圈斜线:禁止操作。 2.white-space:nowrap; 字符不准换行。 text-overflow:ellipsis;当文字超出显示范围的时候以省略号处理 3.pointer-events 鼠标穿透遮罩层操作下层元素 4.str.sl 阅读全文
posted @ 2018-04-16 01:22 Aifeiff 阅读(219) 评论(0) 推荐(0) 编辑