front pageSoftware TutorialsHow to set and download dynamic link addresses for website downloads
How to set and download dynamic link addresses for website downloads

There is no link address in the HTML code. Its address is the address generated by the front-end js execution, which is commonly used in file downloads and multi-resolution images.

What kind of dynamic links are supported?

  • The link address is concatenated from the tag attribute values

HTML code

Click to download
  • When click click to download button, the download address is determined bydata-fileid="filename.zip"of filename.zip For example, the address after splicing is:http://www.demo.com/files/文件名.zip

How to configure

Take the above code as an example

  • Query Tags:.downloadFile
  • Replacement: No need to fill in
  • Tag attributes:data-fileid
  • Concatenation prefix:htp://www.demo.com/files/
  • Splicing suffix: No need to fill

Replacement Processing

This type of dynamic generation of different image sizes for img:srcset

Depending on the resolution, js dynamically loads different image sizes. srcset is an array containing the supported image sizes.

The rendered image address may be

Settings similar to this: Before replacement:/image- After replacement:/image-180.jpg|/image-320.jpg|/image-640.jpg|/image-800.jpg

After replacement, multiple addresses are separated by '|

  • Through the above processing, 4 groups of image addresses are obtained, namely
http://www.demo.com/files/20220603/image-180.jpg http://www.demo.com/files/20220603/image-320.jpg http://www.demo.com/files/20220603/image-640.jpg http://www.demo.com/files/20220603/image-800.jpg

limitation

  • Currently, multi-parameter splicing is not supported, and only one parameter splicing is supported.
  • More complex parameter handling issues.
Software application: front-end template download; development and design; SEO optimization; offline web browsing. Note: This software is not a hacking program and cannot download background data!
Disclaimer: The services are used for personal learning, research or appreciation, as well as other non-commercial or non-profit purposes, but at the same time should comply with the provisions of copyright law and other relevant laws, and must not infringe the legitimate rights of this website and related rights holders. The risks arising from the use of this site's tools have nothing to do with this software.
Copyright © 2019-2024 Rabbit Software All Rights Reserved Guangdong ICP No. 19111427-2
Tutorial Information User Manual Website topics