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

浙公网安备 33010602011771号