发布网友 发布时间:2022-04-23 07:07
共1个回答
热心网友 时间:2022-05-04 20:27
文件 --> 首选项 --> 用户片段 --> 找到现有的Html片段 .json格式 ,把里面en改成 zh-cn就可以了
下面是我用的H5模板,供参考
{
"html:5": { "prefix": "h5", "body": [ "<!DOCTYPE html>", "<html lang=\"zh-cn\">", "<head>", "\t<meta charset=\"UTF-8\">", "\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">", "\t<meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">", "\t<meta name=\"keywords\" content=\"\">", "\t<meta name=\"description\" content=\"\">", "\t<title></title>", "\t<link href=\"css/main.css\" rel=\"stylesheet\" type=\"text/css\">", "\t<script src=\"js/jquery-1.8.3.min.js\" type=\"text/javascript\"></script>", "</head>", "<body>", "\t<div class=\"wrap\"></div>" "\n" "\t<script src=\"js/jquery-1.8.3.min.js\" type=\"text/javascript\"></script>", "</body>", "</html>", ], "description": "HTML5" }
}