摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>异步数据加载</title> </head> <body> <div id="main" style="width:600px;height:300px;">< 阅读全文
摘要:
删除元素 阅读全文
摘要:
隐藏元素 <!DOCTYPE html> <html> <head> <script src="/jquery/jquery.min.js"></script> </head> <body> <h1>隐藏 HTML 元素</h1> <h2 id="01">Hello World!</h2> <h2 阅读全文
摘要:
设置文本 <!DOCTYPE html> <html> <head> <script src="/jquery/jquery.min.js"></script> </head> <body> <h1>设置文本内容</h1> <h2 id="01">Hello China!</h2> <h2 id=" 阅读全文
摘要:
通过ID查找元素 <!DOCTYPE html> <html> <head> <script src="/jquery/jquery.min.js"></script> </head> <body> <h1>通过 id 查找 HTML 元素</h1> <p id="id01">Hello World 阅读全文
摘要:
用get发送信息 <!DOCTYPE html> <html> <body> <h1>XMLHttpRequest 对象</h1> <button type="button" onclick="loadDoc()">请求数据</button> <p id="demo"></p> <script> f 阅读全文
摘要:
饼图 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>饼图</title> </head> <body> <!--第一步:引入echarts--> <script src="js/echarts.js"></ 阅读全文
摘要:
折线图 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>折线图</title> </head> <body> <!--第一步:引入echarts--> <script src="js/echarts.js"> 阅读全文
摘要:
柱状图 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>柱状图</title> </head> <body> <!--第一步:引入echarts--> <script src="js/echarts.js"> 阅读全文
摘要:
Ajax的核心是XMLHttpRequest 对象。 <!DOCTYPE html> <html> <body> <h1>XMLHttpRequest 对象</h1> <p id="demo">让 AJAX 改变这段文本。</p> <button type="button" onclick="loa 阅读全文