Showing
2 changed files
with
5 additions
and
6 deletions
@@ -118,9 +118,9 @@ $(function() { | @@ -118,9 +118,9 @@ $(function() { | ||
118 | $(".pimg").click(function(){ | 118 | $(".pimg").click(function(){ |
119 | var _this = $(this);//将当前的pimg元素作为_this传入函数 | 119 | var _this = $(this);//将当前的pimg元素作为_this传入函数 |
120 | var src = _this.attr("src"); | 120 | var src = _this.attr("src"); |
121 | + var index = src.indexOf("?"); | ||
122 | + src = src.substring(0, index); | ||
121 | window.open(src); | 123 | window.open(src); |
122 | - // var index = src.indexOf("?"); | ||
123 | - //src = src.substring(0, index) + "?imageMogr2/auto-orient"; | ||
124 | //download(src); | 124 | //download(src); |
125 | }); | 125 | }); |
126 | 126 |
@@ -89,10 +89,9 @@ $(function() { | @@ -89,10 +89,9 @@ $(function() { | ||
89 | $(".pimg").click(function(){ | 89 | $(".pimg").click(function(){ |
90 | var _this = $(this);//将当前的pimg元素作为_this传入函数 | 90 | var _this = $(this);//将当前的pimg元素作为_this传入函数 |
91 | var src = _this.attr("src"); | 91 | var src = _this.attr("src"); |
92 | - window.open(src); | ||
93 | - return; | ||
94 | - //var index = src.indexOf("?"); | ||
95 | - // src = src.substring(0, index) + "?imageMogr2/auto-orient"; | 92 | + var index = src.indexOf("?"); |
93 | + src = src.substring(0, index); | ||
94 | + window.open(src); | ||
96 | //download(src); | 95 | //download(src); |
97 | }); | 96 | }); |
98 | 97 |
-
Please register or login to post a comment