This article mainly introduces the analysis of usage errors of uploadify, which has certain reference value. Now I share it with everyone. Friends in need can refer to
在看singwa
In the video tutorial, while learning to use the hui-admin
template, an error occurred when uploading images using the uploadify
plug-in.
ReferenceError: Can't find variable: $
Because JQuery
is used, this situation indicates that JQuery# was not imported before use. ##.
add.html
TypeError: undefined is not a function (near '. ..$("#file_upload").uploadify...') means that the
uploadify method is not defined, indicating that the
uploadify plug-in is not imported, but the actual situation has been imported.
JQuery was caused by repeated imports. After careful inspection, it turned out that
JQuery had been imported into the
_footer.html file. , so place the imported
_footer.html file before
uploadify.css and
uploadify.min.js, without additional import
JQuery That is Can be solved.
_footer.htmlFile
add.html
The above is the detailed content of Analysis of usage errors of uploadify. For more information, please follow other related articles on the PHP Chinese website!