大家好,我很难在VScode上制作我的片段。
这是津贴:
"HTML5":{
"prefix": "html5",
"body":[
"<!DOCTYPE html>",
"<html lang='es'>",
"\t<head>",
"\t\t<meta charset='utf-8'>",
"<meta name='viewport' content='width=device-width, initial-scale=1.0'>",
"\t\t<title></title>",
"\t</head>",
"\t<body>",
"\t</body>",
"</html>"
],
"description": "Basic HTML5 document."
}我想知道如何使字符串的属性,如lang='es‘,而不是,我希望lang="es“作为结果。有人帮忙吗?谢谢!
发布于 2017-03-16 21:40:02
我相信你只需要用反斜杠避开双引号,就像这样:\"。你的片段看起来就像:
"body":[
"<!DOCTYPE html>",
"<html lang=\"es\">",
....https://stackoverflow.com/questions/42843759
复制相似问题