Commit 2b901666 authored by xishifeng's avatar xishifeng

图片旋转2

parent 2bf7176e
...@@ -46,7 +46,8 @@ require(['vue', 'css!style/timeline_pc.css', 'jquery0325', 'common'],function(Vu ...@@ -46,7 +46,8 @@ require(['vue', 'css!style/timeline_pc.css', 'jquery0325', 'common'],function(Vu
var _$this = $(this); var _$this = $(this);
var _img = _$this.find('img').attr('src'); var _img = _$this.find('img').attr('src');
console.log(_img); console.log(_img);
$('body', parent.document).append('<div id="preview_big_img_div"><img src="'+_img+'" /></div>'); $('body', parent.document).append('<img class="J_preview" id="preview_big_img_div" src="'+_img+'" />');
window.parent.document.getElementById('preview_big_img_div').click();//巧妙调用父页面的方法
}) })
}, },
methods: { methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment