Croppie JS未加载|拉拉韦尔

时间:2018-08-21 10:22:22

标签: javascript jquery laravel croppie

我在laravel网站上实施Croppie时遇到问题。任何帮助将不胜感激。

刀片页面

<div id="page" style="background: #FFF; padding: 20px; margin: 20px;">
   <div id="croppie" style="width: 200px; height: 300px;">
  </div>
</div>

刀片标头

<link rel="stylesheet" type="text/css" 
 href="https://cdnjs.cloudflare.com/ajax/libs/croppie/2.6.2/croppie.css">

<link rel="stylesheet" type="text/css" 
href="https://cdnjs.cloudflare.com/ajax/libs/croppie/2.6.2/croppie.min.css">

<link rel="stylesheet" type="text/css" 
href="https://cdnjs.cloudflare.com/ajax/libs/croppie/2.6.2/
croppie.min.css.map">

<script 
 src="https://cdnjs.cloudflare.com/ajax/libs/croppie/2.6.2/croppie.js"> 
</script>

<script 
 src="https://cdnjs.cloudflare.com/ajax/libs/croppie/2.6.2/croppie.min.js"> 
</script>

<script type="text/javascript">
$(function() {
 var basic = $('#croppie').croppie({
    viewport: {
      width: 150,
      height: 200
    }
  });
  basic.croppie('bind', {
    url: '/images/default.png',
    points: [77, 469, 280, 739]
  });
 });
</script>

结果

Blank div

我找不到问题。

0 个答案:

没有答案