Ctrl+/
IE11
F11
ESC
PgUp
PgDn
<!DOCTYPE html>
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
<script type="text/javascript" src="//apps.bdimg.com/libs/jquery/1.11.3/jquery.min.js">
</script>
</head>
<body>
dom获得对象,给设置innertext :
<span id = "s1">
</span>
</br>
jquery获得对象,给设置内容 :
<span id = "s2">
xxxxxxxxxx
body {
background-image: url(/themes/zhan/styles/images/bg-body.jpg);
}
.main {
width: 80%;
margin: auto;
text-align: center;
border: 1px solid #e0e0e0;
box-shadow: 0 0 2px #ddd;
word-wrap: break-word;
padding: 10px;
border-radius: 3px
window.onload = function(){
document.getElementById("s1").innerText = "aaaa,s1";
$(document).ready(function (){
$("#s2").text("bbbb,s2");
});
$(document).ready(function(){
$("span")[2].innerText = "cccc,s3";
$("span").get(3).innerText = "dddd,s4";
$("#btn").click(function(){
alert($("#s5").attr("style"));
$("#bian").click(function (){
$("#s6").attr("style","color:red");