JS form元素的获取

<form action=""> <span>用户名</span><input type="text" name="username"> <b>密码</b><input type="radio" name="sex"> <input type="checkbox" name="h...

Read more

JS 获取元素

获取元素<style type="text/css"> *{ /*padding:0px; margin:0px;*/ list-style:none; text-decoration:none; font-family:microsoft yahei; } #all{ padding:10px; width:...

Read more

JS 节点集合

<form action=""> </form> <form action=""> </form> <form action=""> </form> <a href="">百度</a> <a href="">天猫</a> <a href="">京东&lt...

Read more

JS onresize、onscroll

onresizewindow.onresize = function() { console.log(222); } onscroll<div style="height:200px;width:100px;background:orange;position:absolute;right:0px;top:200px;"></div> <scrip...

Read more

JS XML

XMLXML : 可扩展的文本标记语言 Extensible Markup Language 整个文是一个文档节点每个XML标签是一个元素节点包括在xml元素中的文本是文本节点每一个xml属性是一个属性节点注释属于节点 e.g.<?xml version='1.0' encoding='utf-8'?> <movies> <movie&g...

Read more

JS form元素值的操作

<input type="text" name="username" value="this is a test"><br> 性别: <input type="radio" name="sex" value="1" checked>男 <input type="radio" name="sex" value="0" >女<br&gt...

Read more

JS 元素的基本操作

div{ width:200px;height:200px;background:orange } .active{ border:solid 10px #ddd; background:black; } <div title='test' style="" onmouseout="this.style.background = 'orange'...

Read more