0
我爲發送短信這裏我把兩個輸入框和一些JavaScript如下 -英特爾XDK直接的html文件的使用
function myFunction() {
window.location.href = 「sms:+getElementById("number")?body=getElementById("content")」;
<html>
\t <head>
\t \t <link type="text/css" rel="stylesheet" href="stylesheet.css"/>
\t \t <script type="text/javascript" src="script.js"></script>
\t </head>
\t <body>
\t \t <input type=text id=number placeholder="Enter Mobile Number"></input><br><br>
\t \t <input type=text id=content placeholder="Enter Body of SMS"></input><br><br>
\t \t <button type="button" id='send' onclick='myFunction()'>Send SMS</button><br><br>
\t \t
\t \t This app is in Beta
\t </body>
\t </html>
這裏一個簡單的HTML文件,這就是我得到的桌面,而預覽瀏覽器 - https://drive.google.com/file/d/0B_DG5jTH_sYDUlVaZDZtMkxuTFk/view?usp=sharing
但我得到什麼,而在預覽XDK是 - https://drive.google.com/open?id=0B_DG5jTH_sYDNFJPU0JjNWtLQ3c&authuser=0
這是爲什麼造成的?
我該如何解決這個問題?
任何幫助,將不勝感激。
感謝, 阿什溫