所以如果我有这个http://jsfiddle.net/sPbmM/93/我怎么能在新窗口中打开?
$('.drag').draggable({
revert: "invalid",
helper: "clone"
});
$('.cart ').droppable({
accept: ".drag",
drop: function(event, ui){
window.location=$(ui.draggable).find("a.addtocart").attr("href");
}
});
我尝试了window.open
和.attr("href","target","_blank")
,但我认为sintaxis不正确
谢谢!
答案 0 :(得分:0)