123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655 |
- <!DOCTYPE HTML>
- <html lang="" >
- <head>
- <meta charset="UTF-8">
- <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
- <title>前端基础 · GitBook</title>
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <meta name="description" content="">
- <meta name="generator" content="GitBook 3.2.3">
-
-
-
-
- <link rel="stylesheet" href="../gitbook/style.css">
-
-
-
- <link rel="stylesheet" href="../gitbook/gitbook-plugin-emphasize/plugin.css">
-
-
-
- <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
-
-
-
- <link rel="stylesheet" href="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
-
-
-
- <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
-
-
-
- <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
-
-
-
-
-
-
- <link rel="stylesheet" href="../res/remove_publish.css">
-
-
-
-
-
-
-
-
-
-
-
-
-
- <meta name="HandheldFriendly" content="true"/>
- <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
- <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
-
- <link rel="next" href="web.html" />
-
-
- <link rel="prev" href="golang.html" />
-
- </head>
- <body>
-
- <div class="book">
- <div class="book-summary">
-
-
- <div id="book-search-input" role="search">
- <input type="text" placeholder="Type to search" />
- </div>
-
- <nav role="navigation">
-
- <ul class="summary">
-
-
-
-
- <li>
- <a href="/BaseService/docCentor/raw/master/_book/index.html" target="_blank" class="custom-link">首页</a>
- </li>
-
-
-
- <li class="divider"></li>
-
-
-
-
-
- <li class="chapter " data-level="1.1" data-path="../">
-
- <a href="../">
-
-
- 首页
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="1.2" data-path="../info.html">
-
- <a href="../info.html">
-
-
- 协作信息
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="1.3" data-path="../cooperation.html">
-
- <a href="../cooperation.html">
-
-
- 协作流程
-
- </a>
-
-
- <ul class="articles">
-
-
- <li class="chapter " data-level="1.3.1" data-path="../cooperation/design.html">
-
- <a href="../cooperation/design.html">
-
-
- 设计规范
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="1.3.2" data-path="../cooperation/dev.html">
-
- <a href="../cooperation/dev.html">
-
-
- 开发规范
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="1.3.3" data-path="../cooperation/test.html">
-
- <a href="../cooperation/test.html">
-
-
- 测试规范
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="1.3.4" data-path="../cooperation/devops.html">
-
- <a href="../cooperation/devops.html">
-
-
- 运维规范
-
- </a>
-
-
- </li>
-
- </ul>
-
- </li>
-
- <li class="chapter " data-level="1.4" data-path="share.html">
-
- <a href="share.html">
-
-
- 经验分享
-
- </a>
-
-
- <ul class="articles">
-
-
- <li class="chapter " data-level="1.4.1" data-path="nodejs.html">
-
- <a href="nodejs.html">
-
-
- windows下nodejs和npm的安装
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="1.4.2" data-path="golang.html">
-
- <a href="golang.html">
-
-
- golang相关资料
-
- </a>
-
-
- </li>
-
- <li class="chapter active" data-level="1.4.3" data-path="webbase.html">
-
- <a href="webbase.html">
-
-
- 前端基础
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="1.4.4" data-path="web.html">
-
- <a href="web.html">
-
-
- 前端相关资料
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="1.4.5" data-path="devops.html">
-
- <a href="devops.html">
-
-
- 运维资料
-
- </a>
-
-
- </li>
-
- </ul>
-
- </li>
-
- <li class="chapter " data-level="1.5" data-path="../devtools.html">
-
- <a href="../devtools.html">
-
-
- 开发工具
-
- </a>
-
-
- </li>
-
-
- <li class="divider"></li>
- <li>
- <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
- Published with GitBook
- </a>
- </li>
- </ul>
- </nav>
-
-
- </div>
- <div class="book-body">
-
- <div class="body-inner">
-
-
- <div class="book-header" role="navigation">
-
- <!-- Title -->
- <h1>
- <i class="fa fa-circle-o-notch fa-spin"></i>
- <a href=".." >前端基础</a>
- </h1>
- </div>
- <div class="page-wrapper" tabindex="-1" role="main">
- <div class="page-inner">
-
- <div id="book-search-results">
- <div class="search-noresults">
-
- <section class="normal markdown-section">
-
- <h1 id="前端知识体系">前端知识体系</h1>
- <ul>
- <li><a href="https://roadmap.sh/frontend" target="_blank">2022年前端学习路线图</a></li>
- </ul>
- <h2 id="开发环境">开发环境</h2>
- <h3 id="ide">IDE</h3>
- <ul>
- <li><p><a href="https://code.visualstudio.com/" target="_blank">vs code</a></p>
- <p>微软出品,开源,基于Electron开发,体积小,扩展多。</p>
- </li>
- <li><p><a href="https://www.jetbrains.com/webstorm/eap/" target="_blank">WebStorm Eap</a></p>
- <p>有强大的智能补全和提示,写起来比 vs code 舒服很多。
- 但是是一款收费软件,这里建议使用免费的 WebStorm Eap 版,是预发布版本,每月更新体验测试。</p>
- </li>
- </ul>
- <h3 id="node">Node</h3>
- <p>Node.js 是一个基于 Chrome V8 引擎的 JavaScript 运行环境。</p>
- <ul>
- <li><p><a href="https://nodejs.org/en/" target="_blank">node</a> 官网下载最新稳定版</p>
- </li>
- <li><p><a href="https://github.com/coreybutler/nvm-windows" target="_blank">nvm</a> 使用nvm管理和切换Node版本</p>
- </li>
- <li><p><a href="https://juejin.im/entry/59658035f265da6c360a19dd" target="_blank">npx</a> 使用npx也可以用来切换Node版本</p>
- <pre><code>npx node@4 -e "console.log(process.version)"
- npx node@6 -e "console.log(process.version)"
- </code></pre></li>
- </ul>
- <h4 id="npm--yarn">npm & yarn</h4>
- <p>国内网络原因,建议使用淘宝镜像加速模块下载</p>
- <ul>
- <li><p>npm</p>
- <pre><code>npm config set registry https://registry.npm.taobao.org --global
- npm config set disturl https://npm.taobao.org/dist --global
- </code></pre><ul>
- <li><a href="https://juejin.im/post/5ab3f77df265da2392364341#heading-20" target="_blank">你不知道的 npm</a></li>
- </ul>
- </li>
- <li><p><a href="https://yarnpkg.com/zh-Hans/docs/usage" target="_blank">yarn</a></p>
- <pre><code>npm install -g yarn
- yarn config set registry https://registry.npm.taobao.org --global
- yarn config set disturl https://npm.taobao.org/dist --global
- </code></pre><p>用<code>yarn add</code>某第三方库名代替<code>npm install</code>某第三方库名。</p>
- </li>
- </ul>
- <h2 id="了解前端">了解前端</h2>
- <p>简单的介绍和入门前端开发,请根据你的喜好选择文档或是视频模式。</p>
- <ul>
- <li><p>视频教程</p>
- <ul>
- <li><a href="http://study.163.com/provider/318013/course.htm" target="_blank">翁恺 HTML & CSS & JS 入门</a></li>
- </ul>
- </li>
- <li><p>其他方案</p>
- <ul>
- <li><a href="http://www.runoob.com/" target="_blank">菜鸟编程 在线编码学习</a></li>
- <li><a href="https://freecodecamp.cn" target="_blank">freecodecamp 在线编码学习</a></li>
- <li><a href="https://www.w3cschool.cn/codecamp/list?pename=html5_and_css_camp" target="_blank">w3school 文档</a></li>
- </ul>
- </li>
- </ul>
- <p>下面将循序渐进的列出学习的链接和在线训练,资料多为图文,易放弃..</p>
- <h3 id="走进-html--css-8h">走进 HTML & CSS <code>8h</code></h3>
- <ul>
- <li><p>熟悉元素及语义化 <code>1.5h</code></p>
- <ul>
- <li><a href="https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element" target="_blank">HTML元素参考</a></li>
- <li><a href="http://justineo.github.io/slideshows/semantic-html" target="_blank">语义化HTML</a></li>
- </ul>
- </li>
- <li><p>熟悉css元素及选择器 <code>0.5h</code></p>
- <ul>
- <li><a href="https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference" target="_blank">css元素参考</a></li>
- <li><a href="http://www.w3school.com.cn/cssref/css_selectors.asp" target="_blank">css选择器参考</a></li>
- </ul>
- </li>
- <li><p>完成 HTML5 & CSS 系列训练 (二选一)</p>
- <ul>
- <li><a href="https://freecodecamp.cn" target="_blank">freecodecamp</a></li>
- <li><a href="https://www.w3cschool.cn/codecamp/list?pename=html5_and_css_camp" target="_blank">w3c</a></li>
- </ul>
- </li>
- <li><p>实现基本布局 <code>3h</code></p>
- <ul>
- <li>圣杯布局 <code>0.5h</code></li>
- <li>手机端常见布局 <code>0.5h</code>
- 这里你可能需要去重温<a href="http://zh.learnlayout.com/" target="_blank">css 布局基础</a> <a href="http://www.ruanyifeng.com/blog/2015/07/flex-grammar.html" target="_blank">flex 布局</a>
- <img src="https://zhangyuhan2016.gitee.io/week/assets/img/css.32f5459d.jpg" alt="常见布局"></li>
- </ul>
- </li>
- <li><p>模仿一些网站</p>
- <ul>
- <li><p><a href="https://www.baidu.com/" target="_blank">百度</a></p>
- <p>你可以通过右键另存获取你需要的图标
- 当然我建议你按下 <kbd>F12</kbd> 选择 <kbd>Network</kbd> 再筛选 <kbd>Img</kbd> ,<kbd>F5</kbd> 刷新后可以看到所有的图片请求
- 这里你可能会看到一张含有所有小图标的<a href="http://www.w3school.com.cn/css/css_image_sprites.asp" target="_blank">精灵图</a></p>
- </li>
- </ul>
- </li>
- </ul>
- <h4 id="深入前端知识">深入前端知识</h4>
- <p>加<code>*</code>为推荐完成项</p>
- <ul>
- <li><a href="#">* 使用IconFont</a></li>
- <li><a href="https://developer.mozilla.org/zh-CN/docs/Learn/Getting_started_with_the_web" target="_blank">* Web开发入门</a></li>
- <li><p><a href="https://www.sass.hk/guide/" target="_blank">* CSS进阶 Sass</a></p>
- </li>
- <li><p><a href="http://autoprefixer.github.io/" target="_blank">autoprefixer</a></p>
- </li>
- <li><a href="http://yanxyz.github.io/emmet-docs/" target="_blank">开发效率 Emmet</a></li>
- <li><a href="https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Grid_Layout" target="_blank">CSS Grid</a></li>
- </ul>
- <h3 id="了解-javascript--n-day-">了解 JavaScript <code> n day </code></h3>
- <ul>
- <li><a href="https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/First_steps/What_is_JavaScript" target="_blank">* 了解 JavsScript</a></li>
- <li><a href="https://www.liaoxuefeng.com/wiki/001434446689867b27157e896e74d51a89c25cc8b43bdb3000" target="_blank">廖雪峰 JavaScript</a></li>
- <li><a href="http://es6.ruanyifeng.com/" target="_blank">* ES6 入门</a></li>
- <li><a href="http://www.ruanyifeng.com/blog/2016/04/cors" target="_blank">跨域</a></li>
- <li><a href="http://youmightnotneedjquery.com/" target="_blank">jQ原生写法 你可能不需要jQuery</a></li>
- <li><a href="https://github.com/axios/axios" target="_blank">* axios</a></li>
- <li><a href="http://www.ruanyifeng.com/blog/javascript/" target="_blank">阮一峰</a></li>
- </ul>
- <h3 id="进阶">进阶</h3>
- <ul>
- <li><a href="https://www.tslang.cn/" target="_blank">* TypeScript</a></li>
- <li><a href="http://eslint.cn/docs/user-guide/getting-started" target="_blank">EsLint</a><ul>
- <li><a href="https://github.com/standard/standard/blob/master/docs/README-zhcn.md" target="_blank">standard</a></li>
- </ul>
- </li>
- </ul>
- <h3 id="常见框架">常见框架</h3>
- <table>
- <thead>
- <tr>
- <th style="text-align:center">框架</th>
- <th style="text-align:center">Vue</th>
- <th style="text-align:center">React</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td style="text-align:center">PC UI</td>
- <td style="text-align:center"><a href="https://element.eleme.io/" target="_blank">element</a></td>
- <td style="text-align:center"><a href="https://elemefe.github.io/element-react/#/zh-CN/quick-start" target="_blank">element</a></td>
- </tr>
- <tr>
- <td style="text-align:center">Mobile UI</td>
- <td style="text-align:center"><a href="https://vux.li/" target="_blank">vux</a></td>
- <td style="text-align:center"><a href="https://mobile.ant.design/" target="_blank">ant</a></td>
- </tr>
- <tr>
- <td style="text-align:center">Native-APP</td>
- <td style="text-align:center"><a href="https://vue-native.io/" target="_blank">vue-native</a></td>
- <td style="text-align:center"><a href="https://reactnative.cn/docs/getting-started/" target="_blank">react-native</a></td>
- </tr>
- <tr>
- <td style="text-align:center">Native-PC</td>
- <td style="text-align:center"><a href="https://simulatedgreg.gitbooks.io/electron-vue/content/cn/" target="_blank">electron-vue</a></td>
- <td style="text-align:center"><a href="https://electronjs.org/" target="_blank">electron</a></td>
- </tr>
- <tr>
- <td style="text-align:center">Router</td>
- <td style="text-align:center"><a href="https://router.vuejs.org/zh/" target="_blank">vue-router</a></td>
- <td style="text-align:center"><a href="https://reactnavigation.org/" target="_blank">react-navigation</a></td>
- </tr>
- </tbody>
- </table>
- <ul>
- <li><a href="https://github.com/tyroprogrammer/learn-react-app" target="_blank">learn-react-app</a></li>
- </ul>
- <h2 id="团队协作">团队协作</h2>
- <p><a href="https://lab.github.com/courses" target="_blank">Learning More From Github</a></p>
- <h3 id="了解-markdown-05h">了解 Markdown <code>0.5h</code></h3>
- <ul>
- <li><a href="https://www.zhihu.com/question/20409634" target="_blank">什么是 Markdown</a></li>
- <li><a href="https://segmentfault.com/markdown" target="_blank">Markdown 语法</a></li>
- <li><a href="http://wowubuntu.com/markdown/" target="_blank">Markdown 语法</a></li>
- </ul>
- <h3 id="测试">测试</h3>
- <h4 id="cypress">Cypress</h4>
- <h2 id="其他">其他</h2>
- <h3 id="web网站">Web网站</h3>
- <ul>
- <li><p><a href="https://www.zhihu.com/question/22689579/answer/22318058" target="_blank">Web 建站技术中,HTML、HTML5、XHTML、CSS、SQL、JavaScript、PHP、ASP.NET、Web Services 是什么?</a></p>
- <p>当你在浏览器输入你网页得万维网地址后
- 浏览器从本地Host查找服务器地址,如果没有找到,则一层一层请求域名服务器
- 服务器收到请求,给你返回网页文件
- 浏览器渲染收到得文件,呈现页面</p>
- </li>
- <li><p><a href="https://zhangyuhan2016.github.io/article/EFE-hitchhiker.html" target="_blank">前端漫游指南</a></p>
- </li>
- </ul>
- <h3 id="常见框架"><a href="https://www.cnblogs.com/jtjds/p/9516152.html" target="_blank">常见框架</a></h3>
- <h3 id="donejs"><a href="https://donejs.com/Guide.html" target="_blank">done.js</a></h3>
- <h3 id="webstorm">WebStorm</h3>
- <ul>
- <li><a href="https://stackoverflow.com/questions/23732228/sass-filewatcher-for-webstorm" target="_blank">sass-filewatcher-for-webstorm</a><pre><code>首先安装 node-sass
- npm i node-sass -g
- WebStorm > Setting > Tools > File Watcher
- Program: xx/node-sass.cmd
- Arguments: --source-map true --output-style compressed $FileName$ $FileNameWithoutExtension$.css
- Output: $FileNameWithoutExtension$.css $FileNameWithoutExtension$.css.map
- Working: $FileDir$
- </code></pre>node sass cli parameters<pre><code>-w, --watch Watch a directory or file
- -r, --recursive Recursively watch directories or files
- -o, --output Output directory
- -x, --omit-source-map-url Omit source map URL comment from output
- -i, --indented-syntax Treat data from stdin as sass code (versus scss)
- -q, --quiet Suppress log output except on error
- -v, --version Prints version info
- --output-style CSS output style (nested | expanded | compact | compressed)
- --indent-type Indent type for output CSS (space | tab)
- --indent-width Indent width; number of spaces or tabs (maximum value: 10)
- --linefeed Linefeed style (cr | crlf | lf | lfcr)
- --source-comments Include debug info in output
- --source-map Emit source map
- --source-map-contents Embed include contents in map
- --source-map-embed Embed sourceMappingUrl as data URI
- --source-map-root Base path, will be emitted in source-map as is
- --include-path Path to look for imported files
- --follow Follow symlinked directories
- --precision The amount of precision allowed in decimal numbers
- --importer Path to .js file containing custom importer
- --functions Path to .js file containing custom functions
- --help Print usage info
- </code></pre></li>
- </ul>
- <footer class="page-footer"><span class="copyright">jianyu360 all right reserved,powered by Gitbook</span><span class="footer-modification">修改时间:
- 2022-03-24 16:03:24
- </span></footer>
-
- </section>
-
- </div>
- <div class="search-results">
- <div class="has-results">
-
- <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
- <ul class="search-results-list"></ul>
-
- </div>
- <div class="no-results">
-
- <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
-
- </div>
- </div>
- </div>
- </div>
- </div>
-
- </div>
-
-
- <a href="golang.html" class="navigation navigation-prev " aria-label="Previous page: golang相关资料">
- <i class="fa fa-angle-left"></i>
- </a>
-
-
- <a href="web.html" class="navigation navigation-next " aria-label="Next page: 前端相关资料">
- <i class="fa fa-angle-right"></i>
- </a>
-
-
-
- </div>
- <script>
- var gitbook = gitbook || [];
- gitbook.push(function() {
- gitbook.page.hasChanged({"page":{"title":"前端基础","level":"1.4.3","depth":2,"next":{"title":"前端相关资料","level":"1.4.4","depth":2,"path":"share/web.md","ref":"./share/web.md","articles":[]},"previous":{"title":"golang相关资料","level":"1.4.2","depth":2,"path":"share/golang.md","ref":"./share/golang.md","articles":[]},"dir":"ltr"},"config":{"plugins":["emphasize","-highlight","tbfed-pagefooter","chapter-fold","-sharing"],"styles":{"website":"./res/remove_publish.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"jianyu360","modify_label":"修改时间:","modify_format":"YYYY-MM-DD HH:mm:ss"},"emphasize":{},"chapter-fold":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"links":{"sidebar":{"首页":"/BaseService/docCentor/raw/master/_book/index.html"}},"gitbook":"*"},"file":{"path":"share/webbase.md","mtime":"2022-03-24T08:03:24.296Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-06-23T07:44:07.915Z"},"basePath":"..","book":{"language":""}});
- });
- </script>
- </div>
-
- <script src="../gitbook/gitbook.js"></script>
- <script src="../gitbook/theme.js"></script>
-
-
- <script src="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
-
-
-
- <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
-
-
-
- <script src="../gitbook/gitbook-plugin-search/search.js"></script>
-
-
-
- <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
-
-
-
- <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
-
-
-
- <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
-
-
- </body>
- </html>
|