gpt4 book ai didi

jquery - 如何在 jQuery 中获取 URL

转载 作者:行者123 更新时间:2023-12-01 08:15:13 25 4
gpt4 key购买 nike

我目前正在使用此代码:

jQuery("input[type=file]").filestyle({
图片:“http://localhost:8888/davidgray/wp-content/themes/davidgray/images/browse.png”,
图像高度:22,
图像宽度:72,
宽度:460
});

但是,当我将其切换到实时状态时,我当然想要它所在的 URL,如何使其动态化?

干杯,史蒂夫

最佳答案

只需使用相对 URL

    jQuery("input[type=file]").filestyle({
image: "/davidgray/wp-content/themes/davidgray/images/browse.png",
imageheight : 22,
imagewidth : 72,
width : 460
});

关于jquery - 如何在 jQuery 中获取 URL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11049988/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com