How does jquery get the url address of the background image?

how does jquery get the url address of the background image?

Mar.14,2021

$("-sharptarget").css("background-image").split("\"")[1]

get the content first and then split the string to get


there is a problem running the Wechat browser on the ios system with the code upstairs. The acquisition path is empty. It is recommended to use the following

.
$("-sharp").css("backgroundImage").replace('url(','').replace(')','');
Menu