随笔分类 -  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= 阅读全文
posted @ 2022-05-19 15:23 钧一 阅读(3830) 评论(0) 推荐(0)
摘要:参考文章:https://blog.csdn.net/Developersq/article/details/100522751 阅读全文
posted @ 2019-10-07 18:32 钧一 阅读(790) 评论(0) 推荐(0)
摘要:FormData的多种用法 1.方法一 阅读全文
posted @ 2019-10-06 11:26 钧一
摘要:选中了返回true ,没选中返回false$("input[type='checkbox']").is(':checked'); 阅读全文
posted @ 2019-09-03 11:54 钧一 阅读(407) 评论(0) 推荐(0)
摘要:jq方法 js方法 阅读全文
posted @ 2019-08-29 17:03 钧一 阅读(6283) 评论(0) 推荐(0)
摘要:<!DOCTYPE html><html><head><meta charset="utf-8"><title></title><script>function a(){ document.getElementById("a").innerHTML=111111;}</script></head>< 阅读全文
posted @ 2019-08-19 12:11 钧一 阅读(6923) 评论(0) 推荐(0)
摘要:<!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 阅读全文
posted @ 2019-08-09 18:28 钧一 阅读(261) 评论(0) 推荐(0)
摘要:<!DOCTYPE html><html><head><meta charset="utf-8"><title></title></head><style>#myProgress { width: 100%; height: 30px; position: relative; background- 阅读全文
posted @ 2019-08-09 18:11 钧一 阅读(368) 评论(0) 推荐(0)
摘要:<!DOCTYPE html><html><head><meta charset="utf-8"><title></title></head><body> <button onclick="stopColor()">停止切换</button> <script>var myVar = setInter 阅读全文
posted @ 2019-08-09 18:09 钧一 阅读(4413) 评论(0) 推荐(3)
摘要:<!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 阅读全文
posted @ 2019-08-09 16:29 钧一 阅读(715) 评论(0) 推荐(0)
摘要:图片拖放 阅读全文
posted @ 2019-08-09 15:23 钧一 阅读(424) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html> <head> <style> .anim-show { width:100px; height:100px; background:red; position:relative; animation-name:mymove; animation-duration:5s;/* 5s表示执行动画的时间,0或不写则无动画效果 */ /* 兼容调试如果anim 阅读全文
posted @ 2019-08-09 15:19 钧一 阅读(999) 评论(0) 推荐(0)
摘要:\" \/ \" 例: span = "<span onclick=\"xadmin.open('编辑','\/junyi\/member\/upd\/id\/" + a['id'] + ".html',600,400)\" />" 阅读全文
posted @ 2019-05-16 15:52 钧一 阅读(638) 评论(0) 推荐(0)
摘要:window.location.href = "https://www.baidu.com/"; window.open("https://www.baidu.com/" ); 阅读全文
posted @ 2019-04-30 10:36 钧一 阅读(348) 评论(0) 推荐(0)
摘要:点击添加图片 阅读全文
posted @ 2019-04-09 10:04 钧一 阅读(15657) 评论(0) 推荐(2)
摘要:两个都可以,随便用哪一个 history.back(-1) history.go(-1) 阅读全文
posted @ 2019-03-28 16:36 钧一 阅读(166) 评论(0) 推荐(0)