09 2020 档案
摘要:函数与BOM、DOM操作 1.函数 1.javascript中的变量提升和函数提升 1、在js中只有两种作用域 #1、全局作用域#2、函数作用域在ES6之前,js是没有块级作用域。首先来解释一下什么是没有块级作用域? 2、什么是变量提升? 在我们的js中,代码的执行时分两步走的,1、解析 2、一
阅读全文
摘要:1.数据类型与内置方法 1.数组对象Array 数组对象的作用是:使用单独的变量名来存储一系列的值。类似于Python中的列表。 var x = ["egon", "hello"];console.log(x[1]); // 输出"hello" 常用方法: 方法说明 .length 数组的大小 .p
阅读全文
摘要:CSS网页布局及JavaScript引入 1.定位流 1、相对定位就是相对于自己以前在标准流中的位置来移动 格式: position:relative需要配合以下四个属性一起使用 top:20px; left:30px; right:40px; bottom:50px; 1.1 相对定位的注意点
阅读全文
摘要:CSS网页布局 1.网页布局方式 #1、什么是网页布局方式布局可以理解为排版,我们所熟知的文本编辑类工具都有自己的排版方式,比如word,nodpad++等等而网页的布局方式指的就是浏览器这款工具是如何对网页中的元素进行排版的#2、网页布局/排版的三种方式2.1、标准流2.2、浮动流2.3、定位流
阅读全文
摘要:CSS属性设置 1.字体属性 1.1 font-weight:文字粗细 取值描述 normal 默认值,标准粗细 bord 粗体 border 更粗 lighter 更细 100~900 设置具体粗细,400等同于normal,而700等同于bold inherit 继承父元素字体的粗细值 1.2
阅读全文
摘要:1.css介绍 一 什么是CSSCSS全称Cascading Style Sheet层叠样式表,是专用用来为HTML标签添加样式的。样式指的是HTML标签的显示效果,比如换行、宽高、颜色等等层叠属于CSS的三大特性之一,我们将在后续内容中介绍表指的是我们可以将样式统一收集起来写在一个地方或者一
阅读全文
摘要:1.列表标签 <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style> ul { list-style: none; } </style></head><body><!--无序
阅读全文
摘要:1.基础 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.
阅读全文
摘要:# 方式一:create table t5( id int primary key auto_increment, name varchar(4), email varchar(10), unique key uni_name(name), index xxx(email));# 方式二:alter
阅读全文
摘要:1.视图 # 创建视图select * from emp inner join dep on emp.dep_id = dep.id;create view emp2dep as select emp.*,dep.name as dep_name from emp inner join dep
阅读全文
摘要:# 1 seo sem百度搜索充钱可以靠前的是sem不充钱靠前的seo谷歌,必应国际版百度搜不到,搜出来的10篇文章9篇一毛一样,碰到一个问题,怎么解决,知乎(2个),思否(1个),csdn(没有) 面向对象相关 1 init和new区别? 造出一个空对象,__new__干的把属性放入对象中,__
阅读全文
摘要:1.子查询in # 1、inselect * from emp where age=18 or age=38 or age=28;select * from emp where age in (18,38,28);# 子查询的思路select * from emp where dep_id in(
阅读全文
摘要:1.多表查询 #建表create table department(id int,name varchar(20) );create table employee(id int primary key auto_increment,name varchar(20),sex enum('male',
阅读全文
摘要:1.约束条件 # not null defaultcreate table t1(x int not null);insert into t1 values(); --失败,不为空但是没有默认值create table t2(x int not null default 111);insert i
阅读全文
摘要:1.修改表 create table t1(id int,name char);alter table t1 rename tt1;# 修改字段alter table t1 modify id tinyint;alter table t1 change id ID tinyint;alte
阅读全文
浙公网安备 33010602011771号