随笔分类 -  JavaScript

摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>ES6</title> <script type="text/javascript" src="js/jquery.min.js"></script> <script type=" 阅读全文
posted @ 2021-03-05 10:42 德乌姆列特 阅读(138) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>ES6</title> <script type="text/javascript" src="js/jquery.min.js"></script> </head> <body> 阅读全文
posted @ 2021-03-01 16:25 德乌姆列特 阅读(89) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE> <html lang="zh-en"> <head> <title>js实现简单留言板</title> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <link href="css/boot 阅读全文
posted @ 2021-02-26 09:12 德乌姆列特 阅读(46) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>设计模式</title> <script src="jquery.min.js"></ 阅读全文
posted @ 2021-02-24 11:25 德乌姆列特 阅读(51) 评论(0) 推荐(0) 编辑
摘要:<!doctype html> <html lang='en'> <head> <title>JSON</title> <script src="jquery-1.11.0.min.js"></script> <script> window.onload = function(){ var obj 阅读全文
posted @ 2021-02-22 15:22 德乌姆列特 阅读(53) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <title>正则表达式测试</title> <link rel="stylesheet" href="b 阅读全文
posted @ 2021-02-19 10:14 德乌姆列特 阅读(112) 评论(0) 推荐(0) 编辑
摘要:<!doctype html> <html lang='en'> <head> <title>this</title> <script src="jquery-1.11.0.min.js"></script> <script> window.onload = function(){ //函数中引用 阅读全文
posted @ 2021-02-18 16:58 德乌姆列特 阅读(58) 评论(0) 推荐(0) 编辑
摘要:<!doctype html> <html lang='en'> <head> <title>闭包递归</title> <script> window.onload = function(){ //闭包 能够读取其它函数内部变量的函数 //JS 中每个函数都是个体,它是可以获取父元素的信息,但是父元 阅读全文
posted @ 2021-02-18 16:54 德乌姆列特 阅读(42) 评论(0) 推荐(0) 编辑
摘要:HTML <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>表单校验</title> <link href="css/demo.css" 阅读全文
posted @ 2021-02-10 11:52 德乌姆列特 阅读(92) 评论(0) 推荐(0) 编辑
摘要:<!doctype html> <html lang='en'> <head> <title>原型</title> <script> window.onload = function(){ //apply() call()区别 function Cat(name,color){ //猫对象 this 阅读全文
posted @ 2021-02-10 11:46 德乌姆列特 阅读(43) 评论(0) 推荐(0) 编辑
摘要:<!doctype html> <html lang='en'> <head> <title>原型</title> <script> window.onload = function(){ //JS 一切皆对象?二大类 原始值 + 对象 //对象有区别 函数对象和普通对象 //函数对象是通过new 阅读全文
posted @ 2021-02-10 11:38 德乌姆列特 阅读(44) 评论(0) 推荐(0) 编辑
摘要:window.onload = function(){ //属性的添加 ./[] .是取自身的属性 []可以是变量 var obj = {}; obj.name="sonia"; obj['age'] = 20; console.log(obj['age']); //实例 var obj2 ={}; 阅读全文
posted @ 2021-02-10 11:36 德乌姆列特 阅读(76) 评论(0) 推荐(0) 编辑
摘要:JS数据类型 基本数据类型 number string boolean undefined null 复杂数据类型/引用数据类型 array object function window.onload = function(){ var str = 'abc'; var num =123; var 阅读全文
posted @ 2021-02-10 11:24 德乌姆列特 阅读(48) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示