photography圖片資源支援json格式,Ajax請求

來源:互聯網
上載者:User
this.editfp = new Ext.Panel({            id:'tciPhotoFp',            region:"east",            width:300,            height:240,            html:'<div id="tcigrid"></div>'         });
showPhoto:function(tableId){        Ext.Ajax.request({url:appConfig.contPath + '/attachment/attachment!listPhoto.action',//訪問路徑method:'post',params:{tableId:tableId},disableCaching : true,callback:function(options, success, response){//回呼函數 var data = JSON.parse(response.responseText);//將字串類型轉換成json類型 //alert(data); Galleria.run('#tcigrid', {    dataSource:data,    width: 300,    height:210,    imageCrop: true,    thumbCrop: true,transition:'slide',keepSource: true,autoplay:3000,_locale: {show_thumbnails: "顯示 縮圖",hide_thumbnails: "隱藏 縮圖",play: "暫停播放",pause: "開始播放",enter_fullscreen: "進入全屏",exit_fullscreen: "退出全屏",popout_image: "大圖顯示",showing_image: "顯示映像 %s / %s"     }});}});   Galleria.loadTheme('/szcj/scripts/photography/js/galleria.twelve.min.js');    }

頁面需匯入:

<script src="${ctx}/scripts/photography/js/jquery-1.5.1.min.js"></script><script src="${ctx}/scripts/photography/js/galleria-1.2.7.min.js"></script><script src="${ctx}/scripts/photography/js/galleria.twelve.min.js"></script>

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.