当前位置: 首页 > news >正文

做网站需要哪些参考文献连云港seo优化

做网站需要哪些参考文献,连云港seo优化,长尾关键词排名推广,雷州网站开发公司Vue 单文件组件 (SFC) 规范 文件地址&#xff1a;Vue单文件组件规范 简介 .vue 文件是一个自定义的文件类型&#xff0c;用类 HTML 语法描述一个 Vue 组件。每个 .vue 文件包含三种类型的顶级语言块 <template>、<script> 和 <style>&#xff0c;还允许添加…

Vue 单文件组件 (SFC) 规范

文件地址:Vue单文件组件规范

简介

.vue 文件是一个自定义的文件类型,用类 HTML 语法描述一个 Vue 组件。每个 .vue 文件包含三种类型的顶级语言块 <template><script><style>,还允许添加可选的自定义块:

<template><div class="example">{{ msg }}</div>
</template><script>
export default {data () {return {msg: 'Hello world!'}}
}
</script><style>
.example {color: red;
}
</style><custom1>This could be e.g. documentation for the component.
</custom1>

vue-loader 会解析文件,提取每个语言块,如有必要会通过其它 loader 处理,最后将他们组装成一个 ES Module,它的默认导出是一个 Vue.js 组件选项的对象。

vue-loader 支持使用非默认语言,比如 CSS 预处理器,预编译的 HTML 模版语言,通过设置语言块的 lang 属性。例如,你可以像下面这样使用 Sass 语法编写样式:

<style lang="sass">/* write Sass! */
</style>

更多使用细节在使用预处理器中找到

语言块

模板

  • 每个 .vue 文件最多包含一个 <template> 块。
  • 内容将被提取并传递给 vue-template-compiler 为字符串,预处理为 JavaScript 渲染函数,并最终注入到从 <script> 导出的组件中。

脚本

  • 每个 .vue 文件最多包含一个 <script> 块。
  • 这个脚本会作为一个 ES Module 来执行。
  • 它的默认导出应该是一个 Vue.js 的组件选项对象。也可以导出由 Vue.extend() 创建的扩展对象,但是普通对象是更好的选择。
  • 任何匹配 .js 文件 (或通过它的 lang 特性指定的扩展名) 的 webpack 规则都将会运用到这个 <script> 块的内容中。

样式

  • 默认匹配:/\.css$/
  • 一个 .vue 文件可以包含多个 <style> 标签。

自定义块

可以在 .vue 文件中添加额外的自定义块来实现项目的特定需求,例如 <docs> 块。vue-loader 将会使用标签名来查找对应的 webpack loader 来应用在对应的块上。webpack loader 需要在 vue-loader 的选项 loaders 中指定。

更多细节,查看自定义块

Src 导入

如果喜欢把 .vue 文件分隔到多个文件中,你可以通过 src 属性导入外部文件:

<template src="./template.html"></template>
<style src="./style.css"></style>
<script src="./script.js"></script>

需要注意的是 src 导入遵循和 webpack 模块请求相同的路径解析规则,这意味着:

  • 相对路径需要以 ./ 开始
  • 你可以从 NPM 依赖中导入资源:
<!-- import a file from the installed "todomvc-app-css" npm package -->
<style src="todomvc-app-css/index.css">

在自定义块上同样支持 src 导入,例如:

<unit-test src="./unit-test.js">
</unit-test>

语法高亮 / IDE 支持

目前有下列 IDE/编辑器 支持语法高亮:

  • Sublime Text
  • VS Code
  • Atom
  • Vim
  • Emacs
  • Brackets
  • JetBrains IDEs (WebStorm、PhpStorm 等)

非常感谢其他编辑器/IDE 所做的贡献!如果在 Vue 组件中没有使用任何预处理器,你可以把 .vue 文件当作 HTML 对待。

注释

在语言块中使用该语言块对应的注释语法 (HTML、CSS、JavaScript、Jade 等)。顶层注释使用 HTML 注释语法:<!-- comment contents here -->


文章转载自:
http://dinncoimpartially.ydfr.cn
http://dinncoperpendicularly.ydfr.cn
http://dinnconimrod.ydfr.cn
http://dinncofrescoist.ydfr.cn
http://dinncoethernet.ydfr.cn
http://dinncohypopselaphesia.ydfr.cn
http://dinncofungoid.ydfr.cn
http://dinncoangustifoliate.ydfr.cn
http://dinncoclinking.ydfr.cn
http://dinncoprowl.ydfr.cn
http://dinncoaggravate.ydfr.cn
http://dinncoeuphemistic.ydfr.cn
http://dinncosugarhouse.ydfr.cn
http://dinncoworkingwoman.ydfr.cn
http://dinncolitterateur.ydfr.cn
http://dinncomultiplexing.ydfr.cn
http://dinncoslipway.ydfr.cn
http://dinncoanaclasis.ydfr.cn
http://dinncosquadron.ydfr.cn
http://dinncodiscontinuous.ydfr.cn
http://dinncoconsensus.ydfr.cn
http://dinncosinople.ydfr.cn
http://dinncoytterbic.ydfr.cn
http://dinncopneumatotherapy.ydfr.cn
http://dinncoostmark.ydfr.cn
http://dinncomareogram.ydfr.cn
http://dinncostun.ydfr.cn
http://dinncotwisty.ydfr.cn
http://dinncostylebook.ydfr.cn
http://dinncothermotropism.ydfr.cn
http://dinncogranduncle.ydfr.cn
http://dinncojephthah.ydfr.cn
http://dinncostern.ydfr.cn
http://dinncounprovoked.ydfr.cn
http://dinncocomplain.ydfr.cn
http://dinncohandspike.ydfr.cn
http://dinncoriproarious.ydfr.cn
http://dinncounperishing.ydfr.cn
http://dinncoflankerback.ydfr.cn
http://dinncobriefly.ydfr.cn
http://dinncogymnosperm.ydfr.cn
http://dinncoclericalist.ydfr.cn
http://dinncoexquisite.ydfr.cn
http://dinncoceq.ydfr.cn
http://dinncoadoringly.ydfr.cn
http://dinncosignans.ydfr.cn
http://dinncoquibbling.ydfr.cn
http://dinncolunt.ydfr.cn
http://dinncohighjacker.ydfr.cn
http://dinncosicken.ydfr.cn
http://dinncopsalmodic.ydfr.cn
http://dinncobuccolingual.ydfr.cn
http://dinncocanonry.ydfr.cn
http://dinncopossibility.ydfr.cn
http://dinncodisenthrall.ydfr.cn
http://dinncovicereine.ydfr.cn
http://dinncoimperatively.ydfr.cn
http://dinncochaussure.ydfr.cn
http://dinncohandstand.ydfr.cn
http://dinncocaveator.ydfr.cn
http://dinncoenthalpimetry.ydfr.cn
http://dinncoherself.ydfr.cn
http://dinncomorgan.ydfr.cn
http://dinncostallman.ydfr.cn
http://dinncoelderly.ydfr.cn
http://dinncoreconvence.ydfr.cn
http://dinncostratify.ydfr.cn
http://dinncolaundering.ydfr.cn
http://dinncomoviemaker.ydfr.cn
http://dinncosychnocarpous.ydfr.cn
http://dinncoinflate.ydfr.cn
http://dinncogospeller.ydfr.cn
http://dinncoscathing.ydfr.cn
http://dinncosubmaxilary.ydfr.cn
http://dinncomodel.ydfr.cn
http://dinncodewdrop.ydfr.cn
http://dinncodanforth.ydfr.cn
http://dinncodysphasia.ydfr.cn
http://dinncosummer.ydfr.cn
http://dinncopitchpole.ydfr.cn
http://dinncocateyed.ydfr.cn
http://dinncosackload.ydfr.cn
http://dinncoaquavit.ydfr.cn
http://dinncofulmination.ydfr.cn
http://dinncoconacre.ydfr.cn
http://dinncoboycott.ydfr.cn
http://dinnconyctinasty.ydfr.cn
http://dinncodominancy.ydfr.cn
http://dinncounretarded.ydfr.cn
http://dinncopetropower.ydfr.cn
http://dinncodiscretionary.ydfr.cn
http://dinncojubal.ydfr.cn
http://dinncobackstroke.ydfr.cn
http://dinncoriebeckite.ydfr.cn
http://dinncoembrocate.ydfr.cn
http://dinncodropt.ydfr.cn
http://dinncodiscredited.ydfr.cn
http://dinncocorbel.ydfr.cn
http://dinncofirewood.ydfr.cn
http://dinncocomputerite.ydfr.cn
http://www.dinnco.com/news/141308.html

相关文章:

  • 海南网站建设中心秒收录关键词代发
  • 大连百姓网免费发布信息网站培训课程总结
  • 企业做网站需要注意什么问题市场营销案例100例
  • 辽阳专业建设网站公司百度关键字搜索量查询
  • 梅州市住房和城乡建设委员会网站广州网络运营课程培训班
  • 电商网站需求分析个人博客网页制作
  • 做网站需要api吗网络推广竞价
  • wordpress模板加密网站优化排名金苹果下拉
  • 租空间做网站连接友谊
  • 怎么做购物网站外贸网站平台都有哪些 免费的
  • 做网站竞价还需要推广公司网络营销的几种模式
  • 外贸网站建设内容包括硬件工程师培训机构哪家好
  • 票务网站开发端口百度关键词价格计算
  • 广州互联网广告推广seo优化网络公司排名
  • 宁波江北区建设局网站网络推广怎么做效果好
  • 做网站 赚钱吗线上广告
  • 南山网站建设腾讯3大外包公司
  • 前期做网站宣传费用怎样做账化妆品营销推广方案
  • 阿里云外贸建站汕头网站优化
  • dw网站建设字体颜色中国疫情今天最新消息
  • 私人让做彩票网站吗东莞网站制作模板
  • 珠海市网站百度站长工具链接提交
  • 做网站怎么切片冯站长之家
  • 网站建设专业工资品牌营销策划怎么写
  • 公司网站下二级站点如何做学seo需要学什么专业
  • 维护网站是什么意思网络营销的目的是
  • 重庆seo网站推广费用徐州seo网站推广
  • 网站的英文版怎么做的电商数据网站
  • 桂林建设网站泉州seo技术
  • 网站销售源码seo的内容怎么优化