随笔分类 - JavaScript
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=
阅读全文
摘要:参考文章:https://blog.csdn.net/Developersq/article/details/100522751
阅读全文
摘要:选中了返回true ,没选中返回false$("input[type='checkbox']").is(':checked');
阅读全文
摘要:<!DOCTYPE html><html><head><meta charset="utf-8"><title></title><script>function a(){ document.getElementById("a").innerHTML=111111;}</script></head><
阅读全文
摘要:<!DOCTYPE HTML> <html> <head> <meta charset=UTF-8> <title></title> </head> <body> <style type="text/css"> #rotate3D { width: 80px; height: 70px; color: white; position: relative; font-weight: bold; fo
阅读全文
摘要:<!DOCTYPE html><html><head><meta charset="utf-8"><title></title></head><style>#myProgress { width: 100%; height: 30px; position: relative; background-
阅读全文
摘要:<!DOCTYPE html><html><head><meta charset="utf-8"><title></title></head><body> <button onclick="stopColor()">停止切换</button> <script>var myVar = setInter
阅读全文
摘要:<!DOCTYPE html> <html> <head> <style> .anim{ width: 100px; height: 100px; background-color: red; } .anim-show { transition: 0.7s; transform:translate(100px,100px) scale(1.5); } .anim-show1 { transitio
阅读全文
摘要:<!DOCTYPE html> <html> <head> <style> .anim-show { width:100px; height:100px; background:red; position:relative; animation-name:mymove; animation-duration:5s;/* 5s表示执行动画的时间,0或不写则无动画效果 */ /* 兼容调试如果anim
阅读全文
摘要:\" \/ \" 例: span = "<span onclick=\"xadmin.open('编辑','\/junyi\/member\/upd\/id\/" + a['id'] + ".html',600,400)\" />"
阅读全文
摘要:window.location.href = "https://www.baidu.com/"; window.open("https://www.baidu.com/" );
阅读全文
摘要:两个都可以,随便用哪一个 history.back(-1) history.go(-1)
阅读全文

浙公网安备 33010602011771号