我想在我的应用程序中使用样式组件,我想知道如何组织它.
基本样式的组件被分配给特定组件以便可重用.
但是我希望在其他组件中多次使用样式组件(例如动画组件)呢?我应该创建一个文件来保存这些"全局"样式组件并将其导入到许多组件中吗?
这是好习惯吗?
我正在尝试使用我的实体symfony formbuilder来处理dropzone.js.
如果我使用简单,一切正常 <input type="file" id="form_file" name="form[file]">
但是,如果我使用dropzone.js,我在POST中得到了这个区别:

我该怎么办呢?
这是我的js:
Dropzone.options.myAwesomeDropzone = {
autoProcessQueue: false,
uploadMultiple: true,
parallelUploads: 25,
maxFiles: 25,
init: function() {
var myDropzone = this;
$("#submit-all").click(function (e) {
e.preventDefault();
e.stopPropagation();
myDropzone.processQueue();
}
);
}
}
Run Code Online (Sandbox Code Playgroud)
我的表单文件如下:
<form id="my-awesome-dropzone" class="wizard-big dropzone" action="{{ path('add') }}" method="post" {{ form_enctype(form) }}>
{{ form_widget(form.name, {'attr': { 'class': 'form-control' } }) }}
<div class="row">
<div class="dropzone-previews"></div>
<div class="fallback">
{{ form_widget(form.file, {'attr': { 'class': 'cotam' } }) }}
</div>
</div>
<button type="submit" id="submit-all" class="btn">Upload …Run Code Online (Sandbox Code Playgroud) 我正在使用React和SSR FlowRouter.
由于这条线:
var height = (Meteor.isClient ? window.innerHeight : 0);
<div style={{top: height+'px' }}>
Run Code Online (Sandbox Code Playgroud)
我收到这样的警告:
Warning: React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering. Instead, figure out why the markup being generated …