1

如何在 jquery 中更改图像路径,我想更改此图像路径:

loader_path: 'images/prettyPopin/loader.gif'

我使用了这段代码但没有用

loader_path: '<?php echo theme_img('prettyPopin/loader.gif'); ?>
4

2 回答 2

1
loader_path: '<?php echo theme_img('prettyPopin/loader.gif'); ?>'

你错过了结束语.. – Sudhir

于 2013-09-09T06:35:01.083 回答
1

尝试

"<?php echo theme_img('prettyPopin/loader.gif'); ?>"

不要混合引用

prettyPopin/loader.gif是字符串不是变量

于 2013-09-09T06:37:36.953 回答