08 2021 档案

摘要:$(document).ready(function(){ $("#b01").click(function(){ htmlobj=$.ajax({url:"/jquery/test1.txt",async:false}); var temp=htmlobj.responseText; alert( 阅读全文
posted @ 2021-08-31 10:36 zxh91989 阅读(738) 评论(0) 推荐(0)
摘要:在用IE运行(必须) <!DOCTYPE html><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title></title> </head> <script language= 阅读全文
posted @ 2021-08-31 10:32 zxh91989 阅读(1029) 评论(0) 推荐(0)
摘要:通过 outerHTML document.documentElement.outerHTML 通过异步请求(完整源码,推荐) $.get(window.location.href,function(res){ console.log(res); }); 通过jQuery $("html").htm 阅读全文
posted @ 2021-08-29 21:06 zxh91989 阅读(1360) 评论(0) 推荐(0)
摘要:js代码 $('img').click(function () { //获取图片路径 var imgsrc = $(this).attr("src"); console.log(imgsrc); var opacityBottom = '<div class="opacityBottom" styl 阅读全文
posted @ 2021-08-25 16:37 zxh91989 阅读(765) 评论(0) 推荐(0)
摘要:查看大图、html查看大图、js查看大图 $(".pimg").click(function(){ var _this = $(this);//将当前的pimg元素作为_this传入函数 imgShow("#outerdiv", "#innerdiv", "#bigimg", _this); }); 阅读全文
posted @ 2021-08-25 16:36 zxh91989 阅读(868) 评论(0) 推荐(0)