获取移动设备的问题

时间:2013-03-18 16:33:36

标签: php javascript mobile get

Viewport argument value "device-width;" for key "width" is invalid, and has been ignored. Note that ';' is not a separator in viewport values. The list should be comma-separated. index.php:8
Viewport argument value "1.0;" for key "initial-scale" was truncated to its numeric prefix. Note that ';' is not a separator in viewport values. The list should be comma-separated. index.php:8
Viewport argument value "1.0;" for key "maximum-scale" was truncated to its numeric prefix. Note that ';' is not a separator in viewport values. The list should be comma-separated. index.php:8
Failed to load resource: the server responded with a status of 404 (Not Found) 
Uncaught ReferenceError: jQuery is not defined jQueryJson.js:156
Uncaught ReferenceError: jQuery is not defined jquery.mobile-1.0.min.js:8
Failed to load resource 

你好,我遇到了一些问题,我试着和我的教授交谈,但他无法解释我的错误是什么,或者我怎样才能解决我的问题。这是我的移动页面,如果有人可以帮助我apriciate

,我真的想把它整理好

感谢advence

1 个答案:

答案 0 :(得分:3)

第一个错误是关于语法的大喊大叫。它说用逗号替换分号。

你有类似

的东西
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">

它想要

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

下一个错误:

  

无法加载资源:服务器响应状态为404(未找到)

这是说它没有加载文件,而Uncaught ReferenceError: jQuery is not defined jQueryJson.js:156的外观看起来你没有上传jQuery文件。