我在 Windows 上加载的代码:
$(".directoryMedia ul li").prepend("<a href='#' class='RemoveProjectImage' title='Remove from Project'></a>");
在 Firefox 上效果很好
我在 Windows 上加载的代码:
$(".directoryMedia ul li").prepend("<a href='#' class='RemoveProjectImage' title='Remove from Project'></a>");
在 Firefox 上效果很好
Your string concatenation is not correct, also there is not text display in the link
$('.directoryMedia ul li').prepend("<a href='#' class='RemoveProjectImage' title='Remove from Project'>test content</a>");
Demo: Fiddle