111,120
社区成员
发帖
与我相关
我的任务
分享
<script type="text/javascript">
OFC = {};
OFC.jquery = {
name: "jQuery",
version: function(src) { return $('#'+ src)[0].get_version() },
rasterize: function (src, dst) { $('#'+ dst).replaceWith(OFC.jquery.image(src)) },
image: function(src) { return "<img src='data:image/png;base64," + $('#'+src)[0].get_img_binary() + "' />"},
popup: function(src) {
var img_win = window.open('', 'Charts: Export as Image')
with(img_win.document) {
write('<html><head><title>Charts: Export as Image<\/title><\/head><body>' + OFC.jquery.image(src) + '<\/body><\/html>') }
img_win.document.close();
}
}
if (typeof(Control == "undefined")) {var Control = {OFC: OFC.jquery}}
function save_image() { alert(1); OFC.jquery.popup('my_chart') }
function moo() { alert(99); };
</script>