6
我开发为WordPress的模板页,我需要当我点击一个按钮的路径是namesite.com/wordpress/test
加载图像,我需要加载图像在WordPress加载图像使用jQuery
$("<img src='wp-content/themes/twentytwelve/images/loader.gif' class='loader' />").appendTo("#contact");
的问题是图像不在wordpress/wp-content/themes/twentytwelve/images/loader.gif
中搜索,但在wordpress/test/wp-content/themes/twentytwelve/images/loader.gif
,所以我有错误。我能怎么做?
谢谢!我添加了完整路径;) – Mitro