I finally completed a project management system based on the concept of web2.0. During the implementation of the system, the functional module of scaling and cropping of avatars was used. Moreover, I found that there are few articles discussing this aspect on the Internet, so I put my I’ll post the implementation method and share it with everyone. Please forgive me if it’s not well written.
I implemented it using ui.draggable of jquery ui. Of course, the method implemented in this article is not limited to jquery ui, any library can be used as long as it can realize the drag function. The version number of jquery ui I use is 1.6. This version has fixed a lot of bugs and is gradually improving. To be honest, some previous versions of the code had a lot of bugs. Now the code quality has been improved to a certain extent, especially a lot of bugs have been fixed. . This UI library is fully compatible with jquery's syntax, which means that implicit iteration, super powerful selector, etc. can be used seamlessly. This is more convenient and lightweight than component libraries such as dojo and ext.
Expand