摘要: idea右侧编辑区设置护眼色 阅读全文
posted @ 2018-11-23 14:53 松松敲代码 阅读(308) 评论(0) 推荐(0)
摘要: 添加:字段不为空,不指定默认值需要先删除表中的所有记录,再添加 字段不为空,指定了默认值直接添加(已有记录,这个字段的值都是默认值) 修改:为空-->不为空(无默认值)先删除这个字段为空的记录,再修改 不为空(无默认值)-->为空直接修改 阅读全文
posted @ 2018-11-23 14:33 松松敲代码 阅读(137) 评论(0) 推荐(0)
摘要: 1 -- 删除表 2 drop table check_test; 3 -- 不为空,不为null的值只能是0,1(不为空,值只能是0,1) 4 create table check_test( 5 default_flag number(1) not null 6 -- 检查约束 7 check (default_flag in(0,1)) 8 ); 9 10 -- ... 阅读全文
posted @ 2018-11-23 14:32 松松敲代码 阅读(353) 评论(0) 推荐(0)
摘要: /** 父亲 */ function Father(){ this.name = 'pine'; } Father.prototype={age:27}; Father.prototype.constructor=Father; /** 孩子 */ function Child(){ Father.call(this); this.address='杭州市... 阅读全文
posted @ 2018-11-23 14:12 松松敲代码 阅读(528) 评论(0) 推荐(0)
摘要: 1 /** 2 父亲 3 */ 4 function Father(){ 5 this.password='123456'; 6 this.sex='男'; 7 } 8 9 Father.prototype = { 10 name : 'pine', 11 age : 27, 12 getName:function... 阅读全文
posted @ 2018-11-23 14:11 松松敲代码 阅读(112) 评论(0) 推荐(0)
摘要: 1 /** 2 父亲 3 */ 4 function Father(){ 5 this.name = 'pine'; 6 this.age = 27; 7 } 8 9 Father.prototype= { 10 birth:'1991-05-07', 11 address:'杭州市西湖区' 12 }; 13 Father... 阅读全文
posted @ 2018-11-23 14:08 松松敲代码 阅读(443) 评论(0) 推荐(0)
摘要: 获取某个对象的原型Object.getPrototypeOf(obj) Object.getPrototypeOf({})==Object.prototypetrue var a = new Object();Object.getPrototypeOf(a)==Object.prototypetru 阅读全文
posted @ 2018-11-23 14:04 松松敲代码 阅读(343) 评论(0) 推荐(0)
摘要: HTML<!-- 被注释的内容 --> CSS/* 被注释的内容 */ JavaScript单行注释://被注释的内容多行注释:/*被注释的内容*/ 阅读全文
posted @ 2018-11-23 14:02 松松敲代码 阅读(326) 评论(0) 推荐(0)
摘要: 1:颜色名称p{background-color:red;} 2:十六进制颜色p{background-color:#ff0000;} 3:RGB颜色p{background-color:rgb(255,0,0);}或者p{background-color:rgb(100%,0%,0%);} 阅读全文
posted @ 2018-11-23 13:44 松松敲代码 阅读(260) 评论(0) 推荐(0)