jQuery Plug-in Creation Image Location

Asked 2 years ago, Updated 2 years ago, 70 views

I made a jQuery plug-in, but I'm not sure where to place the image that needs to be loaded.
Do you normally place it in a folder?
There is only one image to load, so I thought I would encode it with Base64 and embed it, but I don't think that's good either.

javascript jquery

2022-09-30 20:50

1 Answers

It depends on the content of the image, but if you hold a certain size of image in dataurl, you need to worry about trivial things such as whether the browser comes out or doesn't come out, so I don't think it's recommended to use a plug-in to put the so-called image file in dataurl.
If you want to set a border pattern on the background of the characters, I color Canvas one pixel at a time and convert it to base64 and extend it with css.


2022-09-30 20:50

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.