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

Jquery replace character replacement implementation code_jquery

WBOY
WBOYOriginal
2016-05-16 18:14:46917browse

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)

Statement:
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