Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 我为手机创建了manifest.json文件_Javascript_Json_Manifest - Fatal编程技术网

Javascript 我为手机创建了manifest.json文件

Javascript 我为手机创建了manifest.json文件,javascript,json,manifest,Javascript,Json,Manifest,我创建了三个文件index.html、style.css、manifest.json,并将一个图像作为PNG格式添加到索引文件中。正如您所见,索引文件与bouth样式和清单文件非常相似,如下所示 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" co

我创建了三个文件index.html、style.css、manifest.json,并将一个图像作为PNG格式添加到索引文件中。正如您所见,索引文件与bouth样式和清单文件非常相似,如下所示

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    <title>burim</title>

    <link rel="stylesheet" href="st.css">
    <link rel="manifest" href="manifest.json">
    
</head>

<body>
    
    
    <img src="mas.png" class="one">

</body>
</html>
现在我得到了一些关于文件本身的错误,我需要更正吗?这些错误的目的是什么?是编码还是个人电脑本身

{
    "name":"websocket",
    "short_name":"websocket",
    "start_url":"index.html",
    "display":"standalone",
    "orientation":"portrait-primary",
    "background_color":"yellow",
    
    "icon":[
        {
            "src":"mas.png",
            "type":"image/png",
            "size":"140x140",
            "purpose":"maskable any"
        }
    ]
}