我想修改代码,一次点击打开两个链接。我在互联网和StackOverflow上搜索过,但这些都不适合我!
需要帮助的感谢代码:function display()
{
$('.btn-free').hide();
$('.download-timer').show();
if (seconds == 0)
{
$('.download-timer').html("<a href='<?php echo validation::safeOutputToScreen($file->getNextDownloadPageLink()); ?>'><?php echo pluginHelper::pluginEnabled('mediaplayer') ? t("download_view_now", "download/view now") : t("download_now", "download now"); ?></a>");
}
else
{
$('.download-timer-seconds').html(seconds);
}
seconds--;
}
人们可能会觉得这很烦人
function openTwoWindows() {
var one = window.open("http://example.com/pageone.html");
var two = window.open("http://example.com/pagetwo.html");
}
$("#go-button").on("click",openTwoWindows);