Analysis of usage errors of uploadify

不言
Release: 2023-04-02 17:44:02
Original
2039 people have browsed it

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
Analysis of usage errors of uploadify

A new error occurred after importing:


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.

After checking on the Internet, it turned out that

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.htmlAnalysis of usage errors of uploadify

Analysis of usage errors of uploadify

The above is the entire content of this article, I hope it will be helpful to everyone Learning will be helpful. For more related content, please pay attention to the PHP Chinese website!

Related recommendations:

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!