问题 Dropzone.options.dropzone = { uploadMultiple: false, maxFiles: {{ imagecount }}, maxFilesize: 2, // MB dictFileTooBig: "That image is too large. We only allow 2MB or smaller.", acceptedFiles: ".jpeg, .jpg", init: function () { this.on("success", function(file, response) { $('.uploaded-photos').append('<div><img src="' + response.link + '"height="150" class="photo" id="' + response.id + '"/><span class="delete-photo">Delete</span></div>'); $('.uploaded-photos').justifiedGallery('norewind')