
“好事”文章推荐:《远程连接利器:玩转MobaXterm》
文章地址:https://cloud.tencent.com/developer/article/2474500
好文介绍:这篇文章作者文章轻松不烧脑,主要是想和大家分享一下我在工作中常用的远程管理MobaXterm,作者通过图文并茂的形式把该工具讲解的很透彻,非常不错,值得推荐!
pages/[name]/index.jspages/[name]/[item].js 文件夹,每个文件大于 1000 行请开始拆分components/[name]/src 文件夹,在 components/[name]/index.js 引入并外放themes,全局 js 放在 utils,请求放在 services,图片放在 assertssrc 之外的 publicpublic 文件夹app.js 或 app.vue,内容主入口为 index.js,启动入口为 main.js(如 electron 或 ssr)input iframe video table 等附件元素推荐包一层 div.text2 .w10 的原子类,可有但最好不超过 2 个@click-image="handleClickImage"handle,如: onClickImage="handleClickImage".btn-red,操作类用小驼峰式 .btnSubmitPromotionPanelh1~h6 dl/dt/dd cite code 等标签,能提升 SEO 效果<mate> 标签,见 附HEAD 标签规范[target="_blank"] 时推荐带上 [rel="noopener"] 提高安全性style,可通过变化 className 去实现!important,活用权重覆盖.el-table.el-table-specailposition: fixed 布局flex 等 CSS3 新属性,但尚不推荐使用 cale currentColor 等属性-webkit-overflow-scrolling: touch1 时小数点前的 0,如 0.5px 改为 .5px 等0 推荐不带单位,如 0px 改为 0,除了 0s 0msbackground,用 data:image/svg+xml, 也不行,因为不可伸缩img video 等附件决定高度的元素需写好宽高,或使用自适等比例容器包裹MAX_QUEUE_SIZEitemData_currentgetOrderList refreshGoodsPaymentTextNode GoodsItemTypeConfig TargetStateparams,出参最好为 res$ 字样,如 $section $gradeId 等,推荐与其 ID 一致options,如 options.needAtuh,不推荐简写 optsref 用 <comp ref={ref => (this.$refs = { ...this.$refs, $someCompName: ref })} />type: 0 这种数字等意义不明的状态量,而用 type: "CHOOSE_STUDENT" 等change 等原生事件混淆,而用函数或 trigger('updateSubjectList') 事件流options 入参进行拓展;已有代码可用包装器函数处理入参encodeURIComponent,比如 token redirect 等/ 结尾,存入的数据不以 / 开头,减少不必要的判断添加npm 命令不用 start serve 等作为启动命令的命名,推荐以 dev 为名id 推荐皆用字符串,数据字典皆用正整数100 后存储,获取时也是正整数,虽然有溢出风险但多半不会HEAD 标签规范<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta http-equiv="Content-Type" content="text/html" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
<meta name="wap-font-scale" content="no" />
<link rel="apple-touch-icon-precomposed" href="/apple-touch-icon-57x57-precomposed.png" />
<link rel="shortcut icon" href="./favicon.ico" />
<title>Title</title>
<meta name="keywords" content="your keywords" />
<meta name="description" content="your description" />
<meta name="author" content="author,email address" />
<!--[if lt IE 9]>
<script>
alert('您的浏览器版本过低,请更新本版本浏览器,或更换为诸如谷歌浏览器的现代浏览器');
</script>
<![endif]-->
</head>
<body>
<div id="app"></div>
<script src="./xx.js"></script>
</body>
</html>未完待续,持续更新中...
感谢关注点赞评论~
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。