1

我想从我项目中的外部链接直接下载。但是,当我单击该链接时,Chrome、Explorer 浏览器会首先打开。然后文件开始下降。

我在项目中使用的平台和插件如下。我希望得到您的支持。

我的插件和平台

<!DOCTYPE html>
<html>
    <head>
        <meta name="format-detection" content="telephone=no">
        <meta name="msapplication-tap-highlight" content="no">
        <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
        <link rel="stylesheet" type="text/css" href="css/index.css">
        <title>Hello World</title>
    </head>
    <body>
        <div class="app">
            <h1>Apache Cordova</h1>
            <div id="deviceready" class="blink">
                <p class="event listening">Connecting to Device</p>
                <p class="event received">Device is Ready</p>
                <a href="http://www.kiajans.com.tr/a/uploaded.rar">Download link</a>
            </div>
        </div>
        
        <script type="text/javascript" src="cordova.js"></script>
        <script type="text/javascript" src="js/index.js"></script>
                
    </body>
</html>

4

0 回答 0