<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[chdetective的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/chdetective</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; chdetective]]></copyright><item><title><![CDATA[JavaScript与CSS交互]]></title><link>https://blog.youkuaiyun.com/chdetective/article/details/116427121</link><guid>https://blog.youkuaiyun.com/chdetective/article/details/116427121</guid><author>chdetective</author><pubDate>Wed, 05 May 2021 16:55:38 +0800</pubDate><description><![CDATA[文章目录一、JavaScript与CSS交互？style属性隐藏元素修改className更改样式拖拽事件

一、JavaScript与CSS交互？
style属性
通过元素的style属性，可以获取或修改元素的CSS样式

原css样式为短横线命名法，在使用style属性时，需转换称小驼峰命名法
如CSS中，字体大小为font-size, 使用style属性时，需改为fontSize

隐藏元素



修改className更改样式
通过修改元素的所属类，并对不同的类设置相应样式，同样可达到更改样式的目的]]></description><category></category></item><item><title><![CDATA[DOM（三）]]></title><link>https://blog.youkuaiyun.com/chdetective/article/details/116426999</link><guid>https://blog.youkuaiyun.com/chdetective/article/details/116426999</guid><author>chdetective</author><pubDate>Wed, 05 May 2021 16:47:53 +0800</pubDate><description><![CDATA[文章目录一、DOM事件绑定DOM0级事件和DOM2级事件区别事件传参常用事件二、使用步骤1.引入库2.读入数据总结

提示：以下是本篇文章正文内容，下面案例可供参考
一、DOM事件绑定
DOM0级别：DOM最早版本的事件绑定方式，被所有浏览器兼容
HTML绑定

JS绑定


JS绑定事件时，不能加()，否则会在页面加载时立即执行
可以绑定匿名函数
DOM2级别：添加了两个监听方法来添加和移除事件处理程序
addEventListener()

removeEventListener()

无法移除匿名添加]]></description><category></category></item><item><title><![CDATA[DOM对象]]></title><link>https://blog.youkuaiyun.com/chdetective/article/details/115695531</link><guid>https://blog.youkuaiyun.com/chdetective/article/details/115695531</guid><author>chdetective</author><pubDate>Wed, 14 Apr 2021 13:08:52 +0800</pubDate><description><![CDATA[文章目录一、DOM对象模型1. 什么是DOM？2.Node节点3.访问元素属性二、练习
提示：以下是本篇文章正文内容，下面案例可供参考
一、DOM对象模型
1. 什么是DOM？
当网页被加载时，浏览器会创建页面的文档对象模型（Document Object Model）。

DOM树：
&lt;html&gt;
	&lt;head&gt;
		&lt;title&gt;这是标题&lt;/title&gt;
	&lt;/head&gt;
	&lt;body&gt;
		&lt;div&gt;
			&lt;h]]></description><category></category></item><item><title><![CDATA[BOM对象]]></title><link>https://blog.youkuaiyun.com/chdetective/article/details/115642053</link><guid>https://blog.youkuaiyun.com/chdetective/article/details/115642053</guid><author>chdetective</author><pubDate>Mon, 12 Apr 2021 21:44:22 +0800</pubDate><description><![CDATA[提示：文章写完后，目录可以自动生成，如何生成可参考右边的帮助文档

文章目录一、什么是BOM1.window对象2.window对象常用方法3.window对象常用属性4.location对象5.navigator对象6.screen对象7.history对象8.frames框架

提示：以下是本篇文章正文内容，下面案例可供参考
一、什么是BOM
BOM（Browser Object Model）是指浏览器对象模型，可以对浏览器窗口进行访问和操作。使用 BOM，开发者可以移动窗口、改变状态栏中的文本以及执行]]></description><category></category></item><item><title><![CDATA[JSON]]></title><link>https://blog.youkuaiyun.com/chdetective/article/details/115483247</link><guid>https://blog.youkuaiyun.com/chdetective/article/details/115483247</guid><author>chdetective</author><pubDate>Wed, 07 Apr 2021 20:39:55 +0800</pubDate><description><![CDATA[提示：文章写完后，目录可以自动生成，如何生成可参考右边的帮助文档

文章目录一、什么是JSON？二、JSON语法规则

一、什么是JSON？
&nbsp;&nbsp;&nbsp;&nbsp;JSON是一种轻量级的数据交换格式，采用完全独立于语言的文本格式，用于储存和传输数据的格式，通常用于服务端向网页传递数据。同时，JSON是javaScript的原生格式，在javaScript中处理JSON数据不需要任何特殊的API或工具包。JSON使用JavaScript语法，但是JSON格式仅仅是一个文本，可以被任何]]></description><category></category></item><item><title><![CDATA[String对象及其属性]]></title><link>https://blog.youkuaiyun.com/chdetective/article/details/115484166</link><guid>https://blog.youkuaiyun.com/chdetective/article/details/115484166</guid><author>chdetective</author><pubDate>Wed, 07 Apr 2021 20:39:27 +0800</pubDate><description><![CDATA[文章目录一、String对象1.什么是String?2.String对象访问3.String对象的修改4.String对象的分割5.String对象常用方法6.String对象的截取7.String对象的截取8.String对象的合并

一、String对象
1.什么是String?
String 对象用于存储和处理文本（字符串）
var str = new String("Hello World")
var str1 = "Hello world";
str1.length

2.String对象访问
在]]></description><category></category></item><item><title><![CDATA[二维数组]]></title><link>https://blog.youkuaiyun.com/chdetective/article/details/115186188</link><guid>https://blog.youkuaiyun.com/chdetective/article/details/115186188</guid><author>chdetective</author><pubDate>Wed, 24 Mar 2021 20:28:48 +0800</pubDate><description><![CDATA[文章目录一、二维数组创建访问遍历向二维数组添加元素向二维数组删除元素位移元素数组排序数字排序总结

一、二维数组
二维数组的创建与访问
创建
var fruits = [["1", "Banana"], ["2", "Orange"]];
var element = ["3", "Apple"];
fruits[2] = element;

访问
fruits[0] // ["1", "Banana"]
fruits[0][1] // "Banana"

遍历
for(var i in fruits){
 ]]></description><category></category></item><item><title><![CDATA[Data对象与定时器]]></title><link>https://blog.youkuaiyun.com/chdetective/article/details/115118523</link><guid>https://blog.youkuaiyun.com/chdetective/article/details/115118523</guid><author>chdetective</author><pubDate>Tue, 23 Mar 2021 19:32:34 +0800</pubDate><description><![CDATA[文章目录一、javaScript对象编程1.Date对象二、实践1.date使用2.定时器总结

一、javaScript对象编程
1.Date对象
Data对象是用于处理时间和日期。
其基本格式为：
var myDate = new Date()

date对象中有许多常用的方法
二、实践
1.date使用
&lt;!DOCTYPE html&gt;
&lt;html&gt;
	&lt;head&gt;
		&lt;meta charset="utf-8" /&gt;
		&lt;title&gt;&lt]]></description><category></category></item><item><title><![CDATA[Math对象与数组对象的使用]]></title><link>https://blog.youkuaiyun.com/chdetective/article/details/115137730</link><guid>https://blog.youkuaiyun.com/chdetective/article/details/115137730</guid><author>chdetective</author><pubDate>Tue, 23 Mar 2021 19:31:36 +0800</pubDate><description><![CDATA[文章目录一、Math对象1.常用方法2.案例二、数组1.数组的创建总结

一、Math对象
1.常用方法
Math对象的内置方法可以在不使用构造函数创建对象是直接调用。
ceil(num1) 大于等于该数值的最小整数
floor(num1) 小于等于该数值的最大整数
min(num1,num2) 求两个数的最小值
max(num1, num2) 求两个数的最大值
pow(num1, num2) 求num1的num2次方
random() 0-1的随机数但取不到1
sqrt(num1) 开平方根
2.案例
代]]></description><category></category></item><item><title><![CDATA[循环语句]]></title><link>https://blog.youkuaiyun.com/chdetective/article/details/115116263</link><guid>https://blog.youkuaiyun.com/chdetective/article/details/115116263</guid><author>chdetective</author><pubDate>Tue, 23 Mar 2021 19:09:14 +0800</pubDate><description><![CDATA[文章目录循环语句1.while2.do...while3.for4.for...in总结

循环语句
循环语句有while、do…while 、for 、for…in 下面简单的介绍一下使用方法
1.while
&lt;!DOCTYPE html&gt;
&lt;html&gt;
	&lt;head&gt;
		&lt;meta charset="utf-8" /&gt;
		&lt;title&gt;&lt;/title&gt;
	&lt;/head&gt;
	&lt;body&gt;
		&lt;scr]]></description><category></category></item><item><title><![CDATA[媒体查询]]></title><link>https://blog.youkuaiyun.com/chdetective/article/details/114504408</link><guid>https://blog.youkuaiyun.com/chdetective/article/details/114504408</guid><author>chdetective</author><pubDate>Thu, 11 Mar 2021 10:27:26 +0800</pubDate><description><![CDATA[学习目标：
提示：这里可以添加学习目标
例如：一周掌握 Java 入门知识

学习内容：
提示：这里可以添加要学的内容
例如：
1、 搭建 Java 开发环境
2、 掌握 Java 基本语法
3、 掌握条件语句
4、 掌握循环语句

学习时间：
提示：这里可以添加计划学习的时间
例如：
1、 周一至周五晚上 7 点—晚上9点
2、 周六上午 9 点-上午 11 点
3、 周日下午 3 点-下午 6 点

学习产出：
提示：这里统计学习计划的总量
例如：
1、 技术笔记 2 遍
2、优快云 技术博客 3 篇]]></description><category></category></item><item><title><![CDATA[javascript变量和条件语句]]></title><link>https://blog.youkuaiyun.com/chdetective/article/details/114601359</link><guid>https://blog.youkuaiyun.com/chdetective/article/details/114601359</guid><author>chdetective</author><pubDate>Thu, 11 Mar 2021 10:26:59 +0800</pubDate><description><![CDATA[系列文章目录
提示：这里可以添加系列文章的所有文章的目录，目录需要自己手动添加
例如：第一章 Python 机器学习入门之pandas的使用

提示：写完文章后，目录可以自动生成，如何生成可参考右边的帮助文档
文章目录系列文章目录JavaScript变量及数据类型二、使用步骤1.引入库2.读入数据总结


JavaScript变量及数据类型
1.变量
&nbsp;&nbsp;JS为弱类型语言，常用变量类型（字符串、数字、布尔值、对象等）都声明为var
变量命名规则
&nbsp;&nbsp;第一位必须是字母
]]></description><category></category></item><item><title><![CDATA[javascript基本输入输出语句]]></title><link>https://blog.youkuaiyun.com/chdetective/article/details/114527238</link><guid>https://blog.youkuaiyun.com/chdetective/article/details/114527238</guid><author>chdetective</author><pubDate>Mon, 08 Mar 2021 12:40:08 +0800</pubDate><description><![CDATA[学习目标：
学习js的基本运用

学习内容：
1.了解js引用规则

2.了解基本语法·输入与输出
alert()
创建一个警告对话框，参数内容为对话框文本
例如：alert(“Hello World”);

运行结果

prompt()
创建一个提示对话框，用于收集用户输入，参数一为提示框文本
内容，参数二为输入框的默认值（参数二可选）
例如：（不带参数二）prompt(“你的爱好”)

运行结果

prompt() (带参数二)
prompt(“你的爱海”, “羽毛球”)
运行结果

了解控制台输出
j]]></description><category></category></item></channel></rss>