亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

js圖片剪裁工具cropper使用問題

js圖片剪裁工具cropper使用問題

慕標琳琳 2018-09-15 10:12:40
這是cropper的演示頁面:https://fengyuanchen.github.i...我想使用旋轉按鈕,就是下面紅框中的兩個:按照文檔操作https://github.com/fengyuanch...<div class="btn-group" role="group" aria-label="Basic example">   <button id="rotateLeft" type="button" class="btn btn-secondary" data-method="rotate" data-option="-90" title="左轉">       <i class="fa fa-undo" aria-hidden="true">左轉90度</i>   </button>   <button id="rotateRight" type="button" class="btn btn-secondary" data-method="rotate" data-option="90" title="右轉">       <i class="fa fa-repeat" aria-hidden="true">右轉90度</i>   </button></div>$("#rotateLeft").cropper('rotate', -90); $("#rotateRight").cropper('rotate', 90);可是不能使用,瀏覽器提示Cannot read property 'rotate' of undefined看了一下js源代碼: https://fengyuanchen.github.i... 沒看懂是怎么觸發按鈕的,請大神幫講一下過程。
查看完整描述

1 回答

  • 1 回答
  • 0 關注
  • 1180 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號