-1
    <!DOCTYPE HTML>
    <html>
    <head>
    <title>Doctor List</title>
    <meta name="viewport" content="width=device-width,initial-scale=1"/>
    <link rel="stylesheet" href="css/jquery.mobile-1.0rc1.min.css" />
    <link rel="stylesheet" href="css/styles.css" />


</head>

<body>

    <div id="employeeListPage" data-role="page"  >

        <div data-role="header" data-position="fixed">
            <h1>Doctor</h1>
        </div>

        <div data-role="content">
            <ul id="employeeList" data-role="listview" data-filter="true"></ul>
        </div>

    </div>
    <script src="js/jquery.js"></script>
    <script src="js/jquery.mobile-1.0rc1.min.js"></script>
    <script type="text/javascript"  src="http://panchoslimi.bugs3.com/MMC/js/DoctorList.js"></script>   


</body>

为什么 scr="http://panchoslimi.bugs3.com/mmc/js/DoctorList.js" 不起作用?顺便说一句,我需要在服务器端使用 DoctorList.js 来完成我的 php 文件工作。所以我的 xcode 上不需要本地的 doctorlist.js .. 有什么解决方案吗?

4

2 回答 2

0

当我尝试在浏览器中重复加载链接(将其放入 URL 栏中)时,源代码加载了一次。在其他尝试中,我收到一条错误消息:

服务暂时不可用

与提供 JavaScript 代码的人谈谈服务器不可靠可用。例如,如果他们使用负载平衡并且只有部分 Web 服务器正常运行,您可能会看到这种行为。

顺便说一句,我需要在服务器端使用 DoctorList.js 来完成我的 php 文件工作。所以我不需要本地的医生列表.js

您显示的代码是 HTML。HTML 将在客户端执行,而不是在服务器上执行。您包含脚本的标记似乎是正确的。

JavaScript 不在 PHP 中运行。要在服务器端运行它,您需要一个服务器端 JavaScript 引擎。

于 2013-04-23T16:09:17.237 回答
0

尝试从本地加载您的 js。只需下载它并包含在您的项目中,例如 scr="/js/DoctorList.js"。

于 2013-04-23T16:27:39.100 回答