js: The core js code of the plugin, just refer to fileinput.min.js/fileinput.js, the default plugin language is English, if necessary Chinese you need to refer to js/locales/zh.js (other languages refer to the corresponding js file)
js/plugins: related auxiliary plugins, piexif.min.js (resize image plugin), sortable.js (initialization preview window thumbnail sorting plugin), purify.js (see the instructions are used to purify html code, I tried it and didn't understand the specific explanatory effect)
CSS: Plugin core CSS code, fileinput.min.css/fileinput.css (core CSS code, reference any one), fileinput-rtl.min.css/fileinput-rtl.css (select this set of CSS, the file selection box will be arranged from right to left, that is, select files and other related buttons are on the left, and the file box is on the right)
themes:主题,如需要插件主题样式可引用主题文件夹下的相应js和css文件
See examples:
Open the example/index.html in the compressed package or access ithttp://plugins.krajee.com/file-basic-usage-demoSee examples. You can choose the control code you need to use according to the code in the example.
2. Code reference
Need to reference jquery
It needs to be used in conjunction with bootstrap, that is, the page needs to import bootstrap-related js and css files
Reference fileinput.js and CSS
Chinese need to reference js/locales/zh.js
When a theme style is needed, reference js and css in the relevant folder under themes
Tips: It is best to quote in order above to avoid inexplicable problems, such as zh.js must be quoted after the fileinput.js or it will be invalid
2. Examples of use
View Additions:
Controller adds:
|