Home > Web Front-end > JS Tutorial > Jquery replace character replacement implementation code_jquery

Jquery replace character replacement implementation code_jquery

WBOY
Release: 2016-05-16 18:14:46
Original
870 people have browsed it

Example: To modify the size of the image:

Jquery replace character replacement implementation code_jquery

Use the following statement to replace the size in the image attribute.

$("image").attr("src").replace("size=60", "size=200");

replace(the target to be replaced, after replacement new value)

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