<script type="text/javascript" src= "{% static 'js/csrf.js'%}"></script>
$('#btnCrop').on('click', function(){
//alert("图片上传喽");
$.ajax({
url: '{% url "account:my_image" %}',
type: 'POST',
data: {"img": img},
success: function(e){
location.href= "{% url 'account:my_information' %}" },
});
});
按照教程, 但是点击OK后仍然不能提交