├── Dart ├── Person.dart ├── base.dart ├── base.js └── readme.md ├── README.en.md ├── README.md ├── angular ├── my-ng-app01 │ ├── .editorconfig │ ├── .gitignore │ ├── README.md │ ├── angular.json │ ├── browserslist │ ├── e2e │ │ ├── protractor.conf.js │ │ ├── src │ │ │ ├── app.e2e-spec.ts │ │ │ └── app.po.ts │ │ └── tsconfig.json │ ├── karma.conf.js │ ├── package-lock.json │ ├── package.json │ ├── src │ │ ├── app │ │ │ ├── app-routing.module.ts │ │ │ ├── app.component.css │ │ │ ├── app.component.html │ │ │ ├── app.component.spec.ts │ │ │ ├── app.component.ts │ │ │ ├── app.module.ts │ │ │ └── components │ │ │ │ ├── content │ │ │ │ ├── content.component.css │ │ │ │ ├── content.component.html │ │ │ │ ├── content.component.spec.ts │ │ │ │ └── content.component.ts │ │ │ │ └── head │ │ │ │ ├── head.component.css │ │ │ │ ├── head.component.html │ │ │ │ ├── head.component.spec.ts │ │ │ │ └── head.component.ts │ │ ├── assets │ │ │ └── .gitkeep │ │ ├── environments │ │ │ ├── environment.prod.ts │ │ │ └── environment.ts │ │ ├── favicon.ico │ │ ├── index.html │ │ ├── main.ts │ │ ├── polyfills.ts │ │ ├── styles.css │ │ └── test.ts │ ├── tsconfig.app.json │ ├── tsconfig.json │ ├── tsconfig.spec.json │ └── tslint.json ├── my-ng-app02 │ ├── .editorconfig │ ├── .gitignore │ ├── README.md │ ├── angular.json │ ├── browserslist │ ├── e2e │ │ ├── protractor.conf.js │ │ ├── src │ │ │ ├── app.e2e-spec.ts │ │ │ └── app.po.ts │ │ └── tsconfig.json │ ├── karma.conf.js │ ├── package-lock.json │ ├── package.json │ ├── src │ │ ├── app │ │ │ ├── app-routing.module.ts │ │ │ ├── app.component.css │ │ │ ├── app.component.html │ │ │ ├── app.component.spec.ts │ │ │ ├── app.component.ts │ │ │ ├── app.module.ts │ │ │ └── components │ │ │ │ └── header │ │ │ │ ├── data.ts │ │ │ │ ├── header.component.css │ │ │ │ ├── header.component.html │ │ │ │ ├── header.component.spec.ts │ │ │ │ └── header.component.ts │ │ ├── assets │ │ │ └── .gitkeep │ │ ├── environments │ │ │ ├── environment.prod.ts │ │ │ └── environment.ts │ │ ├── favicon.ico │ │ ├── index.html │ │ ├── main.ts │ │ ├── polyfills.ts │ │ ├── styles.css │ │ ├── test.ts │ │ └── theme.less │ ├── tsconfig.app.json │ ├── tsconfig.json │ ├── tsconfig.spec.json │ └── tslint.json ├── my-ng-app03 │ ├── .editorconfig │ ├── .gitignore │ ├── README.md │ ├── angular.json │ ├── browserslist │ ├── e2e │ │ ├── protractor.conf.js │ │ ├── src │ │ │ ├── app.e2e-spec.ts │ │ │ └── app.po.ts │ │ └── tsconfig.json │ ├── karma.conf.js │ ├── package-lock.json │ ├── package.json │ ├── src │ │ ├── app │ │ │ ├── app.component.css │ │ │ ├── app.component.html │ │ │ ├── app.component.spec.ts │ │ │ ├── app.component.ts │ │ │ ├── app.module.ts │ │ │ └── components │ │ │ │ ├── content │ │ │ │ ├── content.component.css │ │ │ │ ├── content.component.html │ │ │ │ ├── content.component.spec.ts │ │ │ │ └── content.component.ts │ │ │ │ └── header │ │ │ │ ├── header.component.css │ │ │ │ ├── header.component.html │ │ │ │ ├── header.component.spec.ts │ │ │ │ └── header.component.ts │ │ ├── assets │ │ │ └── .gitkeep │ │ ├── environments │ │ │ ├── environment.prod.ts │ │ │ └── environment.ts │ │ ├── favicon.ico │ │ ├── index.html │ │ ├── main.ts │ │ ├── polyfills.ts │ │ ├── styles.css │ │ └── test.ts │ ├── test.ts │ ├── test1.ts │ ├── tsconfig.app.json │ ├── tsconfig.json │ ├── tsconfig.spec.json │ └── tslint.json ├── my-ng-app04 │ ├── .editorconfig │ ├── .gitignore │ ├── README.md │ ├── angular.json │ ├── browserslist │ ├── e2e │ │ ├── protractor.conf.js │ │ ├── src │ │ │ ├── app.e2e-spec.ts │ │ │ └── app.po.ts │ │ └── tsconfig.json │ ├── karma.conf.js │ ├── package-lock.json │ ├── package.json │ ├── src │ │ ├── app │ │ │ ├── app-routing.module.ts │ │ │ ├── app.component.css │ │ │ ├── app.component.html │ │ │ ├── app.component.spec.ts │ │ │ ├── app.component.ts │ │ │ ├── app.module.ts │ │ │ └── components │ │ │ │ ├── about │ │ │ │ ├── about.component.css │ │ │ │ ├── about.component.html │ │ │ │ ├── about.component.spec.ts │ │ │ │ └── about.component.ts │ │ │ │ ├── detail │ │ │ │ ├── detail.component.css │ │ │ │ ├── detail.component.html │ │ │ │ ├── detail.component.spec.ts │ │ │ │ └── detail.component.ts │ │ │ │ ├── error │ │ │ │ ├── error.component.css │ │ │ │ ├── error.component.html │ │ │ │ ├── error.component.spec.ts │ │ │ │ └── error.component.ts │ │ │ │ ├── home │ │ │ │ ├── home.component.css │ │ │ │ ├── home.component.html │ │ │ │ ├── home.component.spec.ts │ │ │ │ └── home.component.ts │ │ │ │ ├── morning │ │ │ │ ├── morning.component.css │ │ │ │ ├── morning.component.html │ │ │ │ ├── morning.component.spec.ts │ │ │ │ └── morning.component.ts │ │ │ │ ├── news │ │ │ │ ├── news.component.css │ │ │ │ ├── news.component.html │ │ │ │ ├── news.component.spec.ts │ │ │ │ └── news.component.ts │ │ │ │ └── night │ │ │ │ ├── night.component.css │ │ │ │ ├── night.component.html │ │ │ │ ├── night.component.spec.ts │ │ │ │ └── night.component.ts │ │ ├── assets │ │ │ └── .gitkeep │ │ ├── environments │ │ │ ├── environment.prod.ts │ │ │ └── environment.ts │ │ ├── favicon.ico │ │ ├── index.html │ │ ├── main.ts │ │ ├── polyfills.ts │ │ ├── styles.css │ │ └── test.ts │ ├── tsconfig.app.json │ ├── tsconfig.json │ ├── tsconfig.spec.json │ └── tslint.json ├── my-ng-app05 │ ├── .editorconfig │ ├── .gitignore │ ├── README.md │ ├── angular.json │ ├── browserslist │ ├── e2e │ │ ├── protractor.conf.js │ │ ├── src │ │ │ ├── app.e2e-spec.ts │ │ │ └── app.po.ts │ │ └── tsconfig.json │ ├── karma.conf.js │ ├── package-lock.json │ ├── package.json │ ├── src │ │ ├── app │ │ │ ├── app-routing.module.ts │ │ │ ├── app.component.css │ │ │ ├── app.component.html │ │ │ ├── app.component.spec.ts │ │ │ ├── app.component.ts │ │ │ ├── app.module.ts │ │ │ ├── components │ │ │ │ ├── about │ │ │ │ │ ├── about.component.css │ │ │ │ │ ├── about.component.html │ │ │ │ │ ├── about.component.spec.ts │ │ │ │ │ └── about.component.ts │ │ │ │ └── home │ │ │ │ │ ├── home.component.css │ │ │ │ │ ├── home.component.html │ │ │ │ │ ├── home.component.spec.ts │ │ │ │ │ └── home.component.ts │ │ │ └── services │ │ │ │ ├── common.service.spec.ts │ │ │ │ └── common.service.ts │ │ ├── assets │ │ │ └── .gitkeep │ │ ├── environments │ │ │ ├── environment.prod.ts │ │ │ └── environment.ts │ │ ├── favicon.ico │ │ ├── index.html │ │ ├── main.ts │ │ ├── polyfills.ts │ │ ├── styles.css │ │ └── test.ts │ ├── tsconfig.app.json │ ├── tsconfig.json │ ├── tsconfig.spec.json │ └── tslint.json ├── my-ng-app06 │ ├── .editorconfig │ ├── .gitignore │ ├── README.md │ ├── angular.json │ ├── browserslist │ ├── e2e │ │ ├── protractor.conf.js │ │ ├── src │ │ │ ├── app.e2e-spec.ts │ │ │ └── app.po.ts │ │ └── tsconfig.json │ ├── karma.conf.js │ ├── package-lock.json │ ├── package.json │ ├── src │ │ ├── app │ │ │ ├── app-routing.module.ts │ │ │ ├── app.component.css │ │ │ ├── app.component.html │ │ │ ├── app.component.spec.ts │ │ │ ├── app.component.ts │ │ │ ├── app.module.ts │ │ │ └── views │ │ │ │ ├── about │ │ │ │ ├── about-routing.module.ts │ │ │ │ ├── about.component.css │ │ │ │ ├── about.component.html │ │ │ │ ├── about.component.spec.ts │ │ │ │ ├── about.component.ts │ │ │ │ └── about.module.ts │ │ │ │ ├── home │ │ │ │ ├── home-routing.module.ts │ │ │ │ ├── home.component.css │ │ │ │ ├── home.component.html │ │ │ │ ├── home.component.spec.ts │ │ │ │ ├── home.component.ts │ │ │ │ └── home.module.ts │ │ │ │ └── news │ │ │ │ ├── components │ │ │ │ ├── morning │ │ │ │ │ ├── morning.component.css │ │ │ │ │ ├── morning.component.html │ │ │ │ │ ├── morning.component.spec.ts │ │ │ │ │ └── morning.component.ts │ │ │ │ └── night │ │ │ │ │ ├── night.component.css │ │ │ │ │ ├── night.component.html │ │ │ │ │ ├── night.component.spec.ts │ │ │ │ │ └── night.component.ts │ │ │ │ ├── news-routing.module.ts │ │ │ │ ├── news.component.css │ │ │ │ ├── news.component.html │ │ │ │ ├── news.component.spec.ts │ │ │ │ ├── news.component.ts │ │ │ │ └── news.module.ts │ │ ├── assets │ │ │ └── .gitkeep │ │ ├── environments │ │ │ ├── environment.prod.ts │ │ │ └── environment.ts │ │ ├── favicon.ico │ │ ├── index.html │ │ ├── main.ts │ │ ├── polyfills.ts │ │ ├── styles.css │ │ └── test.ts │ ├── tsconfig.app.json │ ├── tsconfig.json │ ├── tsconfig.spec.json │ └── tslint.json └── my-ng-app07 │ ├── .editorconfig │ ├── .gitignore │ ├── README.md │ ├── angular.json │ ├── browserslist │ ├── e2e │ ├── protractor.conf.js │ ├── src │ │ ├── app.e2e-spec.ts │ │ └── app.po.ts │ └── tsconfig.json │ ├── karma.conf.js │ ├── package-lock.json │ ├── package.json │ ├── src │ ├── app │ │ ├── app-routing.module.ts │ │ ├── app.component.css │ │ ├── app.component.html │ │ ├── app.component.spec.ts │ │ ├── app.component.ts │ │ ├── app.module.ts │ │ └── views │ │ │ └── home │ │ │ ├── components │ │ │ └── morning │ │ │ │ ├── morning.component.css │ │ │ │ ├── morning.component.html │ │ │ │ ├── morning.component.spec.ts │ │ │ │ └── morning.component.ts │ │ │ ├── home-routing.module.ts │ │ │ ├── home.component.css │ │ │ ├── home.component.html │ │ │ ├── home.component.spec.ts │ │ │ ├── home.component.ts │ │ │ └── home.module.ts │ ├── assets │ │ └── .gitkeep │ ├── environments │ │ ├── environment.prod.ts │ │ └── environment.ts │ ├── favicon.ico │ ├── index.html │ ├── main.ts │ ├── polyfills.ts │ ├── styles.css │ └── test.ts │ ├── tsconfig.app.json │ ├── tsconfig.json │ ├── tsconfig.spec.json │ └── tslint.json ├── database ├── 01-start │ ├── .gitignore │ ├── index.html │ ├── index.js │ ├── models │ │ ├── admin.js │ │ └── db.js │ ├── package.json │ ├── views │ │ └── index.html │ └── yarn.lock ├── 02add-edit - 副本 │ ├── .gitignore │ ├── index.js │ ├── models │ │ ├── admin.js │ │ └── db.js │ ├── package.json │ ├── readme.md │ ├── routers │ │ └── index.js │ ├── views │ │ ├── add.html │ │ ├── edit.html │ │ └── index.html │ └── yarn.lock └── 02add-edit │ ├── .gitignore │ ├── index.js │ ├── models │ ├── admin.js │ └── db.js │ ├── package.json │ ├── readme.md │ ├── routers │ └── index.js │ ├── views │ ├── add.html │ ├── edit.html │ └── index.html │ └── yarn.lock ├── html-css ├── .gitignore ├── README.en.md ├── README.md ├── ajax-demo10 │ ├── css │ │ └── index.css │ ├── images │ │ └── yan.jpg │ ├── index.html │ └── test.html ├── banner-day10 │ ├── css │ │ └── index.css │ ├── images │ │ ├── 01.png │ │ ├── 02.png │ │ ├── 03.png │ │ ├── 04.png │ │ ├── 05.png │ │ └── icon-slides.png │ ├── index.html │ └── js │ │ └── index.js ├── banner-day11 │ ├── css │ │ └── index.css │ ├── images │ │ ├── 01.png │ │ ├── 02.png │ │ ├── 03.png │ │ ├── 04.png │ │ ├── 05.png │ │ └── icon-slides.png │ ├── index.html │ └── js │ │ ├── index.js │ │ └── 封装.js ├── bootstrap.css ├── bs-day12 │ ├── 01.html │ ├── 02媒体查询.html │ ├── 03images.html │ ├── 04栅格原理.html │ ├── css │ │ └── bootstrap.css │ └── images │ │ ├── item01.jpg │ │ ├── item02.jpg │ │ ├── item03.jpg │ │ ├── item04.jpg │ │ ├── item05.jpg │ │ └── item06.jpg ├── bs-day13 │ ├── 01bs.html │ ├── 02bs.html │ ├── 03bs.html │ ├── 04bs.html │ ├── 05bs.html │ ├── css │ │ └── bs.css │ └── images │ │ ├── logo0.png │ │ └── logo1.png ├── bs-day14 │ ├── 01bs.html │ ├── 02实现一个类.html │ ├── 03继承.html │ ├── 04react.html │ └── 05top250.html ├── html-day01 │ ├── 01html标签.html │ ├── 02css.html │ ├── 03test.html │ ├── 04选择器.html │ ├── 05盒子模型.html │ ├── 06盒子居中.html │ ├── 07样式重置.html │ ├── homework01.html │ ├── images │ │ ├── wan.jpg │ │ └── yan.jpg │ └── readme.md ├── html-day02 │ ├── 01盒子模型.html │ ├── 02html标签的分类.html │ ├── 03test.html │ ├── 04水平居中.html │ ├── 05水平居中.html │ ├── 06分组选择器.htm │ ├── 07后代选择器.html │ ├── 08兄弟选择器.html │ ├── 09选择器的优先级别.html │ ├── 10选择器的权重.html │ ├── 11命名.html │ ├── homework.html │ ├── images │ │ ├── about.jpg │ │ └── logo.png │ └── readme.md ├── html-day03 │ ├── 01背景.html │ ├── 02背景简写.html │ ├── 03box-shadow.html │ ├── 04文本修饰.html │ ├── 05字体.html │ ├── 06链接.html │ ├── 07列表.html │ ├── 08table.html │ ├── 09跨列的表格.html │ ├── 10跨行表格.html │ ├── 11间隔表格.html │ ├── 12动画.html │ └── images │ │ ├── bg.png │ │ └── logo.png ├── html-day04 │ ├── 01css的继承.html │ ├── 02width-height.html │ ├── 03jquery.html │ ├── 04盒子模型.html │ ├── 05float.html │ ├── 06float的目的.html │ ├── 07float的问题.html │ ├── 08清除float.html │ ├── 09homework.html │ └── 10homework.html ├── html-day05 │ ├── 01封装.html │ ├── 02定位.html │ ├── 03search.html │ ├── 04垂直水平居中.html │ ├── 05iphone.html │ ├── 06动画.html │ ├── 07music.html │ ├── 08iconfont.html │ ├── 09nav.html │ ├── 10search.htm │ └── images │ │ ├── icon.png │ │ ├── music.jpg │ │ └── phone.png ├── html-day06 │ ├── 01伪元素.html │ ├── 02float.html │ ├── 03下拉导航.html │ ├── 04fixed.html │ ├── 05margin.html │ └── 06nav.html ├── html-day07 │ ├── 01表单.html │ ├── 02单选框.html │ ├── 03选择器.html │ ├── 04选择器.html │ ├── 05符合选框.html │ ├── 06按钮输入框区别.html │ ├── 07内联和内联块混用.html │ ├── 08display.html │ ├── 09icons.html │ └── images │ │ ├── icons_type.png │ │ └── location.png ├── html-day08 │ ├── 01iframe.html │ ├── 02tab.html │ ├── 03定位.html │ ├── 04jquery.html │ ├── 05选择器.html │ ├── 06.html │ ├── 07.html │ ├── 08.html │ ├── 09.html │ ├── html │ │ ├── detail.html │ │ └── index.html │ ├── images │ │ └── erweima.png │ ├── lib │ │ └── jquery-3.4.1.min.js │ └── 练习.html ├── html-day09 │ ├── 01javascript基础.html │ ├── 02数据类型的分类.html │ ├── 03引用类型.html │ ├── 04json对象.html │ ├── 05function.html │ ├── 06控制语句.html │ ├── 07后加加.html │ ├── 08前加加.html │ ├── 09while.html │ └── 10for.html ├── html-day11 │ ├── 01line.html │ ├── 02三角.html │ ├── 03下拉.html │ ├── 042d.html │ ├── 05位移.html │ ├── 06缩放.html │ ├── 07倾斜.html │ ├── 08过渡.html │ ├── 09动画.html │ ├── 10vue.html │ └── 11jquery.html ├── koa-day15 │ ├── .gitignore │ ├── app.js │ ├── package-lock.json │ └── package.json ├── koa-day16 │ ├── .gitignore │ ├── app.js │ ├── package-lock.json │ ├── package.json │ ├── routers │ │ ├── detail.js │ │ └── index.js │ └── views │ │ ├── detail.html │ │ └── index.html ├── koa-server │ ├── app.js │ ├── package-lock.json │ └── package.json ├── ps.md ├── ps攻略.md ├── small-pro │ ├── app.js │ ├── app.json │ ├── images │ │ ├── bg.png │ │ ├── music.png │ │ ├── pause.png │ │ └── play.png │ ├── pages │ │ └── index │ │ │ ├── index.js │ │ │ ├── index.json │ │ │ ├── index.wxml │ │ │ └── index.wxss │ ├── project.config.json │ └── sitemap.json └── 服务器攻略.md ├── html复习 ├── 02flex │ ├── 01flex.html │ ├── 02flex.html │ ├── 03flex-border.html │ ├── 04flex-居中.html │ ├── 05flex的方向.html │ ├── 06flex.html │ └── 07flex-换行.html ├── 05bg │ ├── images │ │ └── aboutus_banner.jpg │ └── index.html ├── 08demo │ ├── images │ │ └── item02.jpg │ ├── index.html │ ├── rotate.html │ ├── transform.html │ ├── 下拉菜单.html │ └── 遮罩.html ├── grid布局.txt └── note.txt ├── ionic ├── .gitignore ├── angular.json ├── browserslist ├── config.xml ├── e2e │ ├── protractor.conf.js │ ├── src │ │ ├── app.e2e-spec.ts │ │ └── app.po.ts │ └── tsconfig.json ├── ionic.config.json ├── karma.conf.js ├── package-lock.json ├── package.json ├── resources │ ├── README.md │ ├── android │ │ ├── icon │ │ │ ├── drawable-hdpi-icon.png │ │ │ ├── drawable-ldpi-icon.png │ │ │ ├── drawable-mdpi-icon.png │ │ │ ├── drawable-xhdpi-icon.png │ │ │ ├── drawable-xxhdpi-icon.png │ │ │ └── drawable-xxxhdpi-icon.png │ │ ├── splash │ │ │ ├── drawable-land-hdpi-screen.png │ │ │ ├── drawable-land-ldpi-screen.png │ │ │ ├── drawable-land-mdpi-screen.png │ │ │ ├── drawable-land-xhdpi-screen.png │ │ │ ├── drawable-land-xxhdpi-screen.png │ │ │ ├── drawable-land-xxxhdpi-screen.png │ │ │ ├── drawable-port-hdpi-screen.png │ │ │ ├── drawable-port-ldpi-screen.png │ │ │ ├── drawable-port-mdpi-screen.png │ │ │ ├── drawable-port-xhdpi-screen.png │ │ │ ├── drawable-port-xxhdpi-screen.png │ │ │ └── drawable-port-xxxhdpi-screen.png │ │ └── xml │ │ │ └── network_security_config.xml │ ├── icon.png │ ├── ios │ │ ├── icon │ │ │ ├── icon-1024.png │ │ │ ├── icon-20.png │ │ │ ├── icon-20@2x.png │ │ │ ├── icon-20@3x.png │ │ │ ├── icon-24@2x.png │ │ │ ├── icon-27.5@2x.png │ │ │ ├── icon-29.png │ │ │ ├── icon-29@2x.png │ │ │ ├── icon-29@3x.png │ │ │ ├── icon-40.png │ │ │ ├── icon-40@2x.png │ │ │ ├── icon-40@3x.png │ │ │ ├── icon-44@2x.png │ │ │ ├── icon-50.png │ │ │ ├── icon-50@2x.png │ │ │ ├── icon-60.png │ │ │ ├── icon-60@2x.png │ │ │ ├── icon-60@3x.png │ │ │ ├── icon-72.png │ │ │ ├── icon-72@2x.png │ │ │ ├── icon-76.png │ │ │ ├── icon-76@2x.png │ │ │ ├── icon-83.5@2x.png │ │ │ ├── icon-86@2x.png │ │ │ ├── icon-98@2x.png │ │ │ ├── icon-small.png │ │ │ ├── icon-small@2x.png │ │ │ ├── icon-small@3x.png │ │ │ ├── icon.png │ │ │ └── icon@2x.png │ │ └── splash │ │ │ ├── Default-2436h.png │ │ │ ├── Default-568h@2x~iphone.png │ │ │ ├── Default-667h.png │ │ │ ├── Default-736h.png │ │ │ ├── Default-Landscape-2436h.png │ │ │ ├── Default-Landscape-736h.png │ │ │ ├── Default-Landscape@2x~ipad.png │ │ │ ├── Default-Landscape@~ipadpro.png │ │ │ ├── Default-Landscape~ipad.png │ │ │ ├── Default-Portrait@2x~ipad.png │ │ │ ├── Default-Portrait@~ipadpro.png │ │ │ ├── Default-Portrait~ipad.png │ │ │ ├── Default@2x~iphone.png │ │ │ ├── Default@2x~universal~anyany.png │ │ │ └── Default~iphone.png │ └── splash.png ├── src │ ├── app │ │ ├── app-routing.module.ts │ │ ├── app.component.html │ │ ├── app.component.scss │ │ ├── app.component.spec.ts │ │ ├── app.component.ts │ │ ├── app.module.ts │ │ ├── tab1 │ │ │ ├── tab1.module.ts │ │ │ ├── tab1.page.html │ │ │ ├── tab1.page.scss │ │ │ ├── tab1.page.spec.ts │ │ │ └── tab1.page.ts │ │ ├── tab2 │ │ │ ├── tab2.module.ts │ │ │ ├── tab2.page.html │ │ │ ├── tab2.page.scss │ │ │ ├── tab2.page.spec.ts │ │ │ └── tab2.page.ts │ │ ├── tab3 │ │ │ ├── tab3.module.ts │ │ │ ├── tab3.page.html │ │ │ ├── tab3.page.scss │ │ │ ├── tab3.page.spec.ts │ │ │ └── tab3.page.ts │ │ ├── tab4 │ │ │ ├── tab4-routing.module.ts │ │ │ ├── tab4.module.ts │ │ │ ├── tab4.page.html │ │ │ ├── tab4.page.scss │ │ │ ├── tab4.page.spec.ts │ │ │ └── tab4.page.ts │ │ ├── tabs │ │ │ ├── tabs-routing.module.ts │ │ │ ├── tabs.module.ts │ │ │ ├── tabs.page.html │ │ │ ├── tabs.page.scss │ │ │ ├── tabs.page.spec.ts │ │ │ └── tabs.page.ts │ │ └── views │ │ │ └── detail │ │ │ ├── detail-routing.module.ts │ │ │ ├── detail.module.ts │ │ │ ├── detail.page.html │ │ │ ├── detail.page.scss │ │ │ ├── detail.page.spec.ts │ │ │ └── detail.page.ts │ ├── assets │ │ ├── icon │ │ │ └── favicon.png │ │ └── shapes.svg │ ├── environments │ │ ├── environment.prod.ts │ │ └── environment.ts │ ├── global.scss │ ├── index.html │ ├── main.ts │ ├── polyfills.ts │ ├── test.ts │ ├── theme │ │ └── variables.scss │ └── zone-flags.ts ├── tsconfig.app.json ├── tsconfig.json ├── tsconfig.spec.json └── tslint.json ├── javascript ├── gene │ ├── 01test.html │ ├── 02test.html │ ├── 03co.html │ ├── 05http-g.html │ ├── 07iterator.html │ └── index.html ├── js-F20 │ ├── 01.html │ ├── 02简单的正则.html │ ├── 03api.html │ ├── 04test-g.html │ ├── 04test.html │ ├── 05备选字符集.html │ ├── 06备选字符集.html │ ├── 07预定义字符集.html │ ├── 08量词.html │ ├── 09.html │ ├── 10.html │ ├── 11贪婪模式.html │ ├── 12匹配位置.html │ ├── 13.html │ ├── 14手机验证.html │ ├── 15.html │ └── 16.html ├── js-day01 │ ├── 01声明变量.html │ ├── 02基本类型.html │ ├── 03引用类型.html │ ├── 04函数.html │ ├── 05函数.html │ ├── 06window.html │ ├── 07全局局部变量.html │ ├── 08对象.html │ ├── 09for.html │ ├── 10music.html │ ├── index.html │ └── index.js ├── js-day02 │ ├── 01.html │ ├── 02声明提前.html │ ├── 03声明提前的执行代码.html │ ├── 04es.html │ ├── 05数据类型之间的转换.html │ ├── 06string-number.html │ ├── 07boolean-number.html │ ├── 08any-string.html │ ├── 09any-boolean.html │ ├── 10自动转换.html │ ├── 11减运算.html │ ├── 12比较运算中的自动转换.html │ ├── 13算术运算符.html │ ├── 14++.html │ ├── 15比较运算.html │ ├── 16逻辑运算.html │ ├── 17赋值运算.html │ ├── 18三目运算.html │ ├── images │ │ ├── 下载 (1).jpg │ │ └── 下载.jpg │ └── index.html ├── js-day03 │ ├── 0.html │ ├── 01.html │ ├── 01.js │ ├── 02.html │ ├── 03.html │ ├── 03switch.html │ ├── 03while.html │ ├── 04while.js │ ├── 06break.html │ ├── 07continue.html │ ├── 08DOM.html │ ├── 09查询DOM.html │ ├── 10.html │ ├── 11.html │ ├── 12事件.html │ ├── 13切换.html │ ├── 14切换.html │ ├── 15隔行变色.html │ ├── 16dom增加.html │ ├── 17修改-替换节点.html │ ├── 19className.html │ ├── 20节点.html │ ├── 21dataset.html │ ├── 22增加.html │ ├── 23克隆节点.html │ └── 24点击跳转nav.html ├── js-day04-server │ ├── .gitignore │ ├── app.js │ ├── assets │ │ └── config.png │ ├── index.html │ ├── lib │ │ └── jquery-3.4.1.js │ ├── login.htm │ ├── package-lock.json │ ├── package.json │ ├── readme.md │ └── registet.html ├── js-day04 │ ├── 01事件.html │ ├── 02滚动.html │ ├── 03onload.html │ ├── 04textarea.html │ ├── 05onsubmit.html │ ├── 06form属性.html │ ├── 07onresize.html │ ├── 08.html │ ├── 09bom.html │ ├── 10prompt.html │ ├── 11window.open.html │ ├── 12定时器.html │ ├── 13setInterval.html │ ├── 14.html │ ├── 15定时器实例.html │ ├── 16.html │ ├── detail.html │ └── index.html ├── js-day05 │ ├── 01swiper.html │ ├── 02jquery.html │ ├── 03事件冒泡.html │ ├── 04事件监听.html │ ├── 05事件捕获.html │ ├── 06.html │ ├── 07array.html │ ├── 08vue.html │ ├── 09.html │ ├── 10.html │ ├── 11.操作元素属性.html │ ├── 12jquery-attr.html │ ├── 13.html │ ├── 15文档碎片.html │ ├── 16批量操作css.html │ ├── images │ │ ├── 01.png │ │ ├── 02.png │ │ ├── 03.png │ │ ├── 04.png │ │ ├── 05.png │ │ ├── 14caaf6dd4.jpg │ │ └── 4a68818befe4ec269bf52b6f6f6ccae6.jpg │ ├── modal-封装.html │ ├── modal.html │ ├── nav.html │ ├── try-throw.html │ └── 函数的参数.html ├── js-day06 │ ├── 01clasList.html │ ├── 02jquery-class.html │ ├── 03append-prepend.html │ ├── 04jquery添加.html │ ├── 05before-after.html │ ├── 06ajax.html │ ├── 07同步异步.html │ ├── 08jquery-ajax.html │ ├── 09jquery-for.html │ ├── 10默认赋值.html │ ├── 11.回调函数.html │ ├── 12.html │ ├── 13箭头函数.html │ ├── 14封装http.html │ ├── 15jsonp.html │ ├── 16.html │ ├── images │ │ └── giphy.gif │ └── lib │ │ ├── http.js │ │ └── jquery-3.4.1.js ├── js-day07 │ ├── 01.html │ ├── index.html │ ├── lib │ │ ├── http.js │ │ └── http1.js │ ├── 字符串模板.html │ ├── 封装音乐.html │ └── 网易云音乐搜索.html ├── js-day08 │ ├── 01判断是否到达底部.html │ ├── 02Math.html │ ├── 03jquery-bottom.html │ ├── 04构造函数.html │ ├── 05返回值.html │ ├── 06函数的参数.html │ ├── 07重载.html │ ├── 08箭头函数.html │ ├── 09箭头的好处.html │ ├── 10.html │ ├── 11bind.html │ ├── 12call.html │ ├── 13call.html │ ├── 14apply.html │ ├── 15数组.html │ ├── 16块级作用域.html │ ├── 17数组增加.html │ ├── 18增加.html │ ├── 19增加.html │ ├── 20前面添加.html │ ├── 21定点增加.html │ ├── 22遍历.html │ ├── f-demo.ts │ ├── images │ │ └── loading.gif │ ├── lib │ │ ├── base.js │ │ └── http.js │ └── 下拉刷新.html ├── js-day09 │ ├── 01画廊.html │ ├── 02画廊-jquery.html │ ├── 03协议按钮禁用.html │ ├── 04图片随鼠标移动.html │ ├── 05拖动.html │ ├── 06拖动事件监听jq.html │ ├── 07网易云.html │ ├── 08数组-删除.html │ ├── 09数组-查询.html │ ├── 10搜索.html │ ├── images │ │ ├── 01.png │ │ ├── 02.png │ │ ├── 03.png │ │ ├── 04.png │ │ ├── 05.png │ │ ├── giphy.gif │ │ └── icon-slides.png │ └── lib │ │ ├── http.js │ │ └── jquery-3.4.1.js ├── js-day10 │ ├── 01修改.html │ ├── 02join.html │ ├── 03sort.html │ ├── 04reduce.html │ ├── 05reverse.html │ ├── 06数组.html │ ├── 07arr.html │ ├── 08copywithin.html │ ├── 09点击焦点换图-左右按钮.html │ ├── 10考虑焦点.html │ ├── 11点击焦点换图.html │ ├── 12jquery-轮播.html │ ├── css │ │ └── index.css │ └── images │ │ ├── 01.png │ │ ├── 02.png │ │ ├── 03.png │ │ ├── 04.png │ │ ├── 05.png │ │ └── icon-slides.png ├── js-day11 │ ├── http.html │ ├── index.html │ └── lib │ │ ├── a.js │ │ ├── b.js │ │ ├── http.js │ │ └── jquery-3.4.1.js ├── js-day12 │ ├── 01index.html │ ├── 02promise.html │ ├── 03封装promise.html │ ├── 04p.html │ ├── 05-promise.html │ ├── 06ajax-p.html │ ├── 07字符串.html │ ├── 08str-查询.html │ ├── 09-split.html │ ├── 10-2.html │ ├── 10.html │ ├── 11.html │ ├── 12search.html │ ├── 13.html │ ├── 14match.html │ ├── 15.html │ ├── 16.html │ └── lib │ │ └── http-promise.js ├── js-day13 │ ├── 02瀑布流.html │ ├── 03music.html │ ├── 04vue-music.html │ ├── 05引用类型.html │ ├── 06内置对象.html │ ├── 07date.html │ ├── 08.html │ ├── 09.html │ ├── 10.html │ ├── 11axios.html │ ├── 12.axios.html │ ├── images │ │ ├── 01.jpg │ │ ├── 02.jpg │ │ ├── 03.jpg │ │ ├── 04.jpg │ │ ├── 05.jpg │ │ ├── 06.jpg │ │ ├── 07.jpg │ │ ├── 08.jpg │ │ ├── 09.jpg │ │ ├── 10.jpg │ │ ├── 11.jpg │ │ ├── 12.jpg │ │ ├── pan.png │ │ ├── pause.png │ │ ├── play.png │ │ └── shou.png │ └── index.html ├── js-day14 │ ├── 02async.html │ ├── 03await.html │ ├── 04.html │ ├── 05.html │ ├── 06.html │ ├── 07async-http.html │ ├── 08async.html │ ├── 09async嵌套.html │ ├── 10自调函数.html │ ├── 11瀑布流.html │ ├── images │ │ ├── 01.jpg │ │ ├── 02.jpg │ │ ├── 03.jpg │ │ ├── 04.jpg │ │ ├── 05.jpg │ │ ├── 06.jpg │ │ ├── 07.jpg │ │ ├── 08.jpg │ │ ├── 09.jpg │ │ ├── 10.jpg │ │ ├── 11.jpg │ │ ├── 12.jpg │ │ ├── pan.png │ │ ├── pause.png │ │ ├── play.png │ │ └── shou.png │ ├── index.html │ └── lib │ │ ├── base.js │ │ └── http.js ├── js-day15 │ ├── 01promise.html │ ├── 02封装http.html │ ├── 03解构.html │ ├── 04封装promise.html │ ├── 05async.html │ ├── 06await.html │ ├── 06封装async.html │ └── lib │ │ ├── http-callback.js │ │ └── http-promise.js ├── js-day16 │ ├── 01函数防抖.html │ ├── 02类.html │ ├── 03.html │ ├── 04原型链.html │ ├── 06es-class.html │ ├── 07es-class.html │ ├── 09static.html │ ├── 10static-extends.html │ ├── 11json.html │ └── 练习.html ├── js-less17 │ ├── 01image.html │ ├── 02.html │ ├── 03.html │ ├── 04关联数组.html │ ├── 05checkbox.html │ ├── 06test.css │ ├── 06test.less │ ├── color.css │ ├── color.less │ └── images │ │ ├── noselect.png │ │ └── select.png ├── js-vm18 │ ├── 01vm.html │ ├── 02rem.html │ └── 03rem.html ├── sass │ ├── 01test.css │ ├── 01test.less │ ├── test.css │ ├── test.min.css │ └── test.scss └── ts-day01 │ ├── index.ts │ ├── js │ └── index.js │ └── tsconfig.json ├── node ├── koa-01 │ ├── .gitignore │ ├── app.js │ ├── index.js │ ├── name.json │ ├── package-lock.json │ └── package.json ├── koa-admin2 │ ├── .gitignore │ ├── app.js │ ├── bin │ │ └── www │ ├── package.json │ ├── public │ │ └── stylesheets │ │ │ └── style.css │ ├── readme.md │ ├── routes │ │ ├── index.js │ │ └── users.js │ ├── views │ │ └── index.html │ └── yarn.lock ├── koa-cookie │ ├── .gitignore │ ├── index.js │ ├── package.json │ ├── yarn-error.log │ └── yarn.lock ├── koa-middle │ ├── .gitignore │ ├── index.js │ ├── package.json │ └── yarn.lock ├── koa-mvc02 │ ├── .gitignore │ ├── assets │ │ └── css │ │ │ ├── detail.css │ │ │ └── index.css │ ├── controllers │ │ └── index.js │ ├── index.js │ ├── models │ │ └── http.js │ ├── package.json │ ├── routers │ │ └── index.js │ ├── views │ │ ├── detail.html │ │ └── index.html │ └── yarn.lock ├── koa-router │ ├── .gitignore │ ├── main.js │ ├── package-lock.json │ ├── package.json │ ├── routers │ │ ├── detail.js │ │ ├── index.js │ │ └── list.js │ └── yarn.lock ├── koa-start01 │ ├── .gitignore │ ├── assets │ │ └── css │ │ │ ├── detail.css │ │ │ └── index.css │ ├── index.js │ ├── package.json │ ├── routers │ │ └── index.js │ ├── views │ │ ├── detail.html │ │ └── index.html │ └── yarn.lock └── sugar-puppeteer │ ├── .gitignore │ ├── duitang.png │ ├── index.js │ ├── package.json │ ├── reptile │ ├── db.js │ ├── detail.js │ └── search.js │ └── yarn.lock ├── python ├── day01 │ ├── 01.py │ └── readme.md └── serve │ ├── .vscode │ └── settings.json │ ├── Pipfile │ ├── Pipfile.lock │ └── app.py ├── react ├── react-demo │ ├── .gitignore │ ├── README.md │ ├── index.html │ ├── package.json │ ├── public │ │ ├── favicon.ico │ │ ├── index.html │ │ ├── logo192.png │ │ ├── logo512.png │ │ ├── manifest.json │ │ └── robots.txt │ ├── src │ │ ├── index.js │ │ └── views │ │ │ └── Home │ │ │ └── index.js │ └── yarn.lock ├── react-demo04 │ ├── .gitignore │ ├── README.md │ ├── package.json │ ├── public │ │ ├── favicon.ico │ │ ├── index.html │ │ ├── logo192.png │ │ ├── logo512.png │ │ ├── manifest.json │ │ └── robots.txt │ ├── src │ │ ├── App.css │ │ ├── App.js │ │ ├── Header.css │ │ ├── Header.js │ │ ├── components-style │ │ │ └── Wrapper.js │ │ ├── components │ │ │ └── Title.js │ │ └── index.js │ └── yarn.lock ├── react-router │ ├── .gitignore │ ├── README.md │ ├── package.json │ ├── public │ │ ├── favicon.ico │ │ ├── index.html │ │ ├── logo192.png │ │ ├── logo512.png │ │ ├── manifest.json │ │ └── robots.txt │ ├── src │ │ ├── App.css │ │ ├── App.js │ │ ├── index.js │ │ └── views │ │ │ ├── About.js │ │ │ ├── Detail.js │ │ │ └── Home.js │ └── yarn.lock ├── react-router2 │ ├── .gitignore │ ├── README.md │ ├── package.json │ ├── public │ │ ├── favicon.ico │ │ ├── index.html │ │ ├── logo192.png │ │ ├── logo512.png │ │ ├── manifest.json │ │ └── robots.txt │ ├── src │ │ ├── App.css │ │ ├── App.js │ │ ├── index.js │ │ ├── store │ │ │ ├── index.js │ │ │ └── reducer.js │ │ └── views │ │ │ ├── About.js │ │ │ ├── Detail.js │ │ │ ├── Home.js │ │ │ └── components │ │ │ ├── Morning.js │ │ │ └── Night.js │ └── yarn.lock └── react-start01 │ ├── .gitignore │ ├── README.md │ ├── package-lock.json │ ├── package.json │ ├── public │ ├── favicon.ico │ ├── index.html │ ├── logo192.png │ ├── logo512.png │ ├── manifest.json │ └── robots.txt │ └── src │ ├── index.js │ └── pages │ └── App │ ├── App.css │ └── App.js └── typescript └── day01 ├── 02.ts ├── 03.ts ├── 04.ts ├── 05.ts ├── 06.ts ├── 07.ts ├── 08.ts ├── 09.ts ├── 10.ts ├── README.md ├── app.js └── app.ts /Dart/Person.dart: -------------------------------------------------------------------------------- 1 | class Person { 2 | String name; 3 | int age; 4 | Person(String name, int age) { 5 | this.name = name; 6 | this.age = age; 7 | } 8 | } 9 | 10 | class Student extends Person { 11 | String skill; 12 | Student(String name, int age, this.skill) : super(name, age); 13 | } 14 | -------------------------------------------------------------------------------- /Dart/base.js: -------------------------------------------------------------------------------- 1 | // var arr=[1,2,3]; 2 | // var test=Array.from(arr); 3 | // arr.push(4); 4 | // console.log(test) 5 | // console.log(arr) 6 | var obj={name:"cheng",age:20} 7 | delete obj.name 8 | console.log(obj) -------------------------------------------------------------------------------- /angular/my-ng-app01/.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see https://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | max_line_length = off 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /angular/my-ng-app01/browserslist: -------------------------------------------------------------------------------- 1 | # This file is used by the build system to adjust CSS and JS output to support the specified browsers below. 2 | # For additional information regarding the format and rule options, please see: 3 | # https://github.com/browserslist/browserslist#queries 4 | 5 | # You can see what browsers were selected by your queries by running: 6 | # npx browserslist 7 | 8 | > 0.5% 9 | last 2 versions 10 | Firefox ESR 11 | not dead 12 | not IE 9-11 # For IE 9-11 support, remove 'not'. -------------------------------------------------------------------------------- /angular/my-ng-app01/e2e/src/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | navigateTo() { 5 | return browser.get(browser.baseUrl) as Promise; 6 | } 7 | 8 | getTitleText() { 9 | return element(by.css('app-root .content span')).getText() as Promise; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /angular/my-ng-app01/e2e/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/e2e", 5 | "module": "commonjs", 6 | "target": "es5", 7 | "types": [ 8 | "jasmine", 9 | "jasminewd2", 10 | "node" 11 | ] 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /angular/my-ng-app01/src/app/app-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { Routes, RouterModule } from '@angular/router'; 3 | 4 | 5 | const routes: Routes = []; 6 | 7 | @NgModule({ 8 | imports: [RouterModule.forRoot(routes)], 9 | exports: [RouterModule] 10 | }) 11 | export class AppRoutingModule { } 12 | -------------------------------------------------------------------------------- /angular/my-ng-app01/src/app/app.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app01/src/app/app.component.css -------------------------------------------------------------------------------- /angular/my-ng-app01/src/app/app.component.html: -------------------------------------------------------------------------------- 1 |

hello world

2 | -------------------------------------------------------------------------------- /angular/my-ng-app01/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-root', 5 | templateUrl: './app.component.html', 6 | styleUrls: ['./app.component.css'] 7 | }) 8 | export class AppComponent { 9 | public title:string = '我是你爸爸'; 10 | } 11 | -------------------------------------------------------------------------------- /angular/my-ng-app01/src/app/components/content/content.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app01/src/app/components/content/content.component.css -------------------------------------------------------------------------------- /angular/my-ng-app01/src/app/components/content/content.component.html: -------------------------------------------------------------------------------- 1 |
2 | 3 |

{{item.name}}

4 |
5 | -------------------------------------------------------------------------------- /angular/my-ng-app01/src/app/components/head/head.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app01/src/app/components/head/head.component.css -------------------------------------------------------------------------------- /angular/my-ng-app01/src/app/components/head/head.component.html: -------------------------------------------------------------------------------- 1 | 2 |

{{title}}

3 | -------------------------------------------------------------------------------- /angular/my-ng-app01/src/app/components/head/head.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit,Input } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-head', 5 | templateUrl: './head.component.html', 6 | styleUrls: ['./head.component.css'] 7 | }) 8 | export class HeadComponent implements OnInit { 9 | @Input() title:string 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /angular/my-ng-app01/src/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app01/src/assets/.gitkeep -------------------------------------------------------------------------------- /angular/my-ng-app01/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /angular/my-ng-app01/src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app01/src/favicon.ico -------------------------------------------------------------------------------- /angular/my-ng-app01/src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | MyNgApp01 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /angular/my-ng-app01/src/main.ts: -------------------------------------------------------------------------------- 1 | import { enableProdMode } from '@angular/core'; 2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 3 | 4 | import { AppModule } from './app/app.module'; 5 | import { environment } from './environments/environment'; 6 | 7 | if (environment.production) { 8 | enableProdMode(); 9 | } 10 | 11 | platformBrowserDynamic().bootstrapModule(AppModule) 12 | .catch(err => console.error(err)); 13 | -------------------------------------------------------------------------------- /angular/my-ng-app01/src/styles.css: -------------------------------------------------------------------------------- 1 | /* You can add global styles to this file, and also import other style files */ 2 | -------------------------------------------------------------------------------- /angular/my-ng-app01/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./out-tsc/app", 5 | "types": [] 6 | }, 7 | "files": [ 8 | "src/main.ts", 9 | "src/polyfills.ts" 10 | ], 11 | "include": [ 12 | "src/**/*.ts" 13 | ], 14 | "exclude": [ 15 | "src/test.ts", 16 | "src/**/*.spec.ts" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /angular/my-ng-app01/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./out-tsc/spec", 5 | "types": [ 6 | "jasmine", 7 | "node" 8 | ] 9 | }, 10 | "files": [ 11 | "src/test.ts", 12 | "src/polyfills.ts" 13 | ], 14 | "include": [ 15 | "src/**/*.spec.ts", 16 | "src/**/*.d.ts" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /angular/my-ng-app02/.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see https://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | max_line_length = off 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /angular/my-ng-app02/browserslist: -------------------------------------------------------------------------------- 1 | # This file is used by the build system to adjust CSS and JS output to support the specified browsers below. 2 | # For additional information regarding the format and rule options, please see: 3 | # https://github.com/browserslist/browserslist#queries 4 | 5 | # You can see what browsers were selected by your queries by running: 6 | # npx browserslist 7 | 8 | > 0.5% 9 | last 2 versions 10 | Firefox ESR 11 | not dead 12 | not IE 9-11 # For IE 9-11 support, remove 'not'. -------------------------------------------------------------------------------- /angular/my-ng-app02/e2e/src/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | navigateTo() { 5 | return browser.get(browser.baseUrl) as Promise; 6 | } 7 | 8 | getTitleText() { 9 | return element(by.css('app-root .content span')).getText() as Promise; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /angular/my-ng-app02/e2e/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/e2e", 5 | "module": "commonjs", 6 | "target": "es5", 7 | "types": [ 8 | "jasmine", 9 | "jasminewd2", 10 | "node" 11 | ] 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /angular/my-ng-app02/src/app/app-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { Routes, RouterModule } from '@angular/router'; 3 | 4 | 5 | const routes: Routes = []; 6 | 7 | @NgModule({ 8 | imports: [RouterModule.forRoot(routes)], 9 | exports: [RouterModule] 10 | }) 11 | export class AppRoutingModule { } 12 | -------------------------------------------------------------------------------- /angular/my-ng-app02/src/app/app.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app02/src/app/app.component.css -------------------------------------------------------------------------------- /angular/my-ng-app02/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angular/my-ng-app02/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-root', 5 | templateUrl: './app.component.html', 6 | styleUrls: ['./app.component.css'] 7 | }) 8 | export class AppComponent { 9 | title = 'my-ng-app02'; 10 | } 11 | -------------------------------------------------------------------------------- /angular/my-ng-app02/src/app/components/header/header.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app02/src/app/components/header/header.component.css -------------------------------------------------------------------------------- /angular/my-ng-app02/src/app/components/header/header.component.html: -------------------------------------------------------------------------------- 1 |

header works!

2 | 3 |

{{item.productName}}

4 | -------------------------------------------------------------------------------- /angular/my-ng-app02/src/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app02/src/assets/.gitkeep -------------------------------------------------------------------------------- /angular/my-ng-app02/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /angular/my-ng-app02/src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app02/src/favicon.ico -------------------------------------------------------------------------------- /angular/my-ng-app02/src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | MyNgApp02 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /angular/my-ng-app02/src/main.ts: -------------------------------------------------------------------------------- 1 | import { enableProdMode } from '@angular/core'; 2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 3 | 4 | import { AppModule } from './app/app.module'; 5 | import { environment } from './environments/environment'; 6 | 7 | if (environment.production) { 8 | enableProdMode(); 9 | } 10 | 11 | platformBrowserDynamic().bootstrapModule(AppModule) 12 | .catch(err => console.error(err)); 13 | -------------------------------------------------------------------------------- /angular/my-ng-app02/src/styles.css: -------------------------------------------------------------------------------- 1 | /* You can add global styles to this file, and also import other style files */ 2 | -------------------------------------------------------------------------------- /angular/my-ng-app02/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./out-tsc/app", 5 | "types": [] 6 | }, 7 | "files": [ 8 | "src/main.ts", 9 | "src/polyfills.ts" 10 | ], 11 | "include": [ 12 | "src/**/*.ts" 13 | ], 14 | "exclude": [ 15 | "src/test.ts", 16 | "src/**/*.spec.ts" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /angular/my-ng-app02/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./out-tsc/spec", 5 | "types": [ 6 | "jasmine", 7 | "node" 8 | ] 9 | }, 10 | "files": [ 11 | "src/test.ts", 12 | "src/polyfills.ts" 13 | ], 14 | "include": [ 15 | "src/**/*.spec.ts", 16 | "src/**/*.d.ts" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /angular/my-ng-app03/.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see https://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | max_line_length = off 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /angular/my-ng-app03/browserslist: -------------------------------------------------------------------------------- 1 | # This file is used by the build system to adjust CSS and JS output to support the specified browsers below. 2 | # For additional information regarding the format and rule options, please see: 3 | # https://github.com/browserslist/browserslist#queries 4 | 5 | # You can see what browsers were selected by your queries by running: 6 | # npx browserslist 7 | 8 | > 0.5% 9 | last 2 versions 10 | Firefox ESR 11 | not dead 12 | not IE 9-11 # For IE 9-11 support, remove 'not'. -------------------------------------------------------------------------------- /angular/my-ng-app03/e2e/src/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | navigateTo() { 5 | return browser.get(browser.baseUrl) as Promise; 6 | } 7 | 8 | getTitleText() { 9 | return element(by.css('app-root .content span')).getText() as Promise; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /angular/my-ng-app03/e2e/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/e2e", 5 | "module": "commonjs", 6 | "target": "es5", 7 | "types": [ 8 | "jasmine", 9 | "jasminewd2", 10 | "node" 11 | ] 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /angular/my-ng-app03/src/app/app.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app03/src/app/app.component.css -------------------------------------------------------------------------------- /angular/my-ng-app03/src/app/app.component.html: -------------------------------------------------------------------------------- 1 |

hello world

2 | 3 | -------------------------------------------------------------------------------- /angular/my-ng-app03/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component ,ViewChild} from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-root', 5 | templateUrl: './app.component.html', 6 | styleUrls: ['./app.component.css'] 7 | }) 8 | export class AppComponent { 9 | @ViewChild('content',{static:false}) content:any; 10 | } 11 | -------------------------------------------------------------------------------- /angular/my-ng-app03/src/app/components/content/content.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app03/src/app/components/content/content.component.css -------------------------------------------------------------------------------- /angular/my-ng-app03/src/app/components/content/content.component.html: -------------------------------------------------------------------------------- 1 |

content works!

2 | -------------------------------------------------------------------------------- /angular/my-ng-app03/src/app/components/header/header.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app03/src/app/components/header/header.component.css -------------------------------------------------------------------------------- /angular/my-ng-app03/src/app/components/header/header.component.html: -------------------------------------------------------------------------------- 1 |

{{title}}

2 | -------------------------------------------------------------------------------- /angular/my-ng-app03/src/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app03/src/assets/.gitkeep -------------------------------------------------------------------------------- /angular/my-ng-app03/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /angular/my-ng-app03/src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app03/src/favicon.ico -------------------------------------------------------------------------------- /angular/my-ng-app03/src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | MyNgApp03 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /angular/my-ng-app03/src/main.ts: -------------------------------------------------------------------------------- 1 | import { enableProdMode } from '@angular/core'; 2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 3 | 4 | import { AppModule } from './app/app.module'; 5 | import { environment } from './environments/environment'; 6 | 7 | if (environment.production) { 8 | enableProdMode(); 9 | } 10 | 11 | platformBrowserDynamic().bootstrapModule(AppModule) 12 | .catch(err => console.error(err)); 13 | -------------------------------------------------------------------------------- /angular/my-ng-app03/src/styles.css: -------------------------------------------------------------------------------- 1 | /* You can add global styles to this file, and also import other style files */ 2 | -------------------------------------------------------------------------------- /angular/my-ng-app03/test.ts: -------------------------------------------------------------------------------- 1 | // class Person{ 2 | // emit(msg:T){ 3 | // console.log(msg); 4 | // } 5 | // } 6 | // var p=new Person(); 7 | // p.emit("hello world") 8 | -------------------------------------------------------------------------------- /angular/my-ng-app03/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./out-tsc/app", 5 | "types": [] 6 | }, 7 | "files": [ 8 | "src/main.ts", 9 | "src/polyfills.ts" 10 | ], 11 | "include": [ 12 | "src/**/*.ts" 13 | ], 14 | "exclude": [ 15 | "src/test.ts", 16 | "src/**/*.spec.ts" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /angular/my-ng-app03/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./out-tsc/spec", 5 | "types": [ 6 | "jasmine", 7 | "node" 8 | ] 9 | }, 10 | "files": [ 11 | "src/test.ts", 12 | "src/polyfills.ts" 13 | ], 14 | "include": [ 15 | "src/**/*.spec.ts", 16 | "src/**/*.d.ts" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /angular/my-ng-app04/.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see https://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | max_line_length = off 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /angular/my-ng-app04/browserslist: -------------------------------------------------------------------------------- 1 | # This file is used by the build system to adjust CSS and JS output to support the specified browsers below. 2 | # For additional information regarding the format and rule options, please see: 3 | # https://github.com/browserslist/browserslist#queries 4 | 5 | # You can see what browsers were selected by your queries by running: 6 | # npx browserslist 7 | 8 | > 0.5% 9 | last 2 versions 10 | Firefox ESR 11 | not dead 12 | not IE 9-11 # For IE 9-11 support, remove 'not'. -------------------------------------------------------------------------------- /angular/my-ng-app04/e2e/src/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | navigateTo() { 5 | return browser.get(browser.baseUrl) as Promise; 6 | } 7 | 8 | getTitleText() { 9 | return element(by.css('app-root .content span')).getText() as Promise; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /angular/my-ng-app04/e2e/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/e2e", 5 | "module": "commonjs", 6 | "target": "es5", 7 | "types": [ 8 | "jasmine", 9 | "jasminewd2", 10 | "node" 11 | ] 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /angular/my-ng-app04/src/app/app.component.css: -------------------------------------------------------------------------------- 1 | .router-link-active{ 2 | color:red 3 | } -------------------------------------------------------------------------------- /angular/my-ng-app04/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /angular/my-ng-app04/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-root', 5 | templateUrl: './app.component.html', 6 | styleUrls: ['./app.component.css'] 7 | }) 8 | export class AppComponent { 9 | title = 'my-ng-app04'; 10 | } 11 | -------------------------------------------------------------------------------- /angular/my-ng-app04/src/app/components/about/about.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app04/src/app/components/about/about.component.css -------------------------------------------------------------------------------- /angular/my-ng-app04/src/app/components/about/about.component.html: -------------------------------------------------------------------------------- 1 |

about works!

2 | -------------------------------------------------------------------------------- /angular/my-ng-app04/src/app/components/about/about.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-about', 5 | templateUrl: './about.component.html', 6 | styleUrls: ['./about.component.css'] 7 | }) 8 | export class AboutComponent implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /angular/my-ng-app04/src/app/components/detail/detail.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app04/src/app/components/detail/detail.component.css -------------------------------------------------------------------------------- /angular/my-ng-app04/src/app/components/detail/detail.component.html: -------------------------------------------------------------------------------- 1 |

detail works!

2 | -------------------------------------------------------------------------------- /angular/my-ng-app04/src/app/components/error/error.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app04/src/app/components/error/error.component.css -------------------------------------------------------------------------------- /angular/my-ng-app04/src/app/components/error/error.component.html: -------------------------------------------------------------------------------- 1 |

404页面没有找到

2 | -------------------------------------------------------------------------------- /angular/my-ng-app04/src/app/components/error/error.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-error', 5 | templateUrl: './error.component.html', 6 | styleUrls: ['./error.component.css'] 7 | }) 8 | export class ErrorComponent implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /angular/my-ng-app04/src/app/components/home/home.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app04/src/app/components/home/home.component.css -------------------------------------------------------------------------------- /angular/my-ng-app04/src/app/components/home/home.component.html: -------------------------------------------------------------------------------- 1 |

home works!

2 | 3 | -------------------------------------------------------------------------------- /angular/my-ng-app04/src/app/components/morning/morning.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app04/src/app/components/morning/morning.component.css -------------------------------------------------------------------------------- /angular/my-ng-app04/src/app/components/morning/morning.component.html: -------------------------------------------------------------------------------- 1 |

morning works!

2 | -------------------------------------------------------------------------------- /angular/my-ng-app04/src/app/components/morning/morning.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-morning', 5 | templateUrl: './morning.component.html', 6 | styleUrls: ['./morning.component.css'] 7 | }) 8 | export class MorningComponent implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /angular/my-ng-app04/src/app/components/news/news.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app04/src/app/components/news/news.component.css -------------------------------------------------------------------------------- /angular/my-ng-app04/src/app/components/news/news.component.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angular/my-ng-app04/src/app/components/news/news.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-news', 5 | templateUrl: './news.component.html', 6 | styleUrls: ['./news.component.css'] 7 | }) 8 | export class NewsComponent implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /angular/my-ng-app04/src/app/components/night/night.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app04/src/app/components/night/night.component.css -------------------------------------------------------------------------------- /angular/my-ng-app04/src/app/components/night/night.component.html: -------------------------------------------------------------------------------- 1 |

night works!

2 | -------------------------------------------------------------------------------- /angular/my-ng-app04/src/app/components/night/night.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-night', 5 | templateUrl: './night.component.html', 6 | styleUrls: ['./night.component.css'] 7 | }) 8 | export class NightComponent implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /angular/my-ng-app04/src/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app04/src/assets/.gitkeep -------------------------------------------------------------------------------- /angular/my-ng-app04/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /angular/my-ng-app04/src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app04/src/favicon.ico -------------------------------------------------------------------------------- /angular/my-ng-app04/src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | MyNgApp04 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /angular/my-ng-app04/src/main.ts: -------------------------------------------------------------------------------- 1 | import { enableProdMode } from '@angular/core'; 2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 3 | 4 | import { AppModule } from './app/app.module'; 5 | import { environment } from './environments/environment'; 6 | 7 | if (environment.production) { 8 | enableProdMode(); 9 | } 10 | 11 | platformBrowserDynamic().bootstrapModule(AppModule) 12 | .catch(err => console.error(err)); 13 | -------------------------------------------------------------------------------- /angular/my-ng-app04/src/styles.css: -------------------------------------------------------------------------------- 1 | /* You can add global styles to this file, and also import other style files */ 2 | -------------------------------------------------------------------------------- /angular/my-ng-app04/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./out-tsc/app", 5 | "types": [] 6 | }, 7 | "files": [ 8 | "src/main.ts", 9 | "src/polyfills.ts" 10 | ], 11 | "include": [ 12 | "src/**/*.ts" 13 | ], 14 | "exclude": [ 15 | "src/test.ts", 16 | "src/**/*.spec.ts" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /angular/my-ng-app04/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./out-tsc/spec", 5 | "types": [ 6 | "jasmine", 7 | "node" 8 | ] 9 | }, 10 | "files": [ 11 | "src/test.ts", 12 | "src/polyfills.ts" 13 | ], 14 | "include": [ 15 | "src/**/*.spec.ts", 16 | "src/**/*.d.ts" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /angular/my-ng-app05/.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see https://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | max_line_length = off 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /angular/my-ng-app05/browserslist: -------------------------------------------------------------------------------- 1 | # This file is used by the build system to adjust CSS and JS output to support the specified browsers below. 2 | # For additional information regarding the format and rule options, please see: 3 | # https://github.com/browserslist/browserslist#queries 4 | 5 | # You can see what browsers were selected by your queries by running: 6 | # npx browserslist 7 | 8 | > 0.5% 9 | last 2 versions 10 | Firefox ESR 11 | not dead 12 | not IE 9-11 # For IE 9-11 support, remove 'not'. -------------------------------------------------------------------------------- /angular/my-ng-app05/e2e/src/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | navigateTo() { 5 | return browser.get(browser.baseUrl) as Promise; 6 | } 7 | 8 | getTitleText() { 9 | return element(by.css('app-root .content span')).getText() as Promise; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /angular/my-ng-app05/e2e/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/e2e", 5 | "module": "commonjs", 6 | "target": "es5", 7 | "types": [ 8 | "jasmine", 9 | "jasminewd2", 10 | "node" 11 | ] 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /angular/my-ng-app05/src/app/app.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app05/src/app/app.component.css -------------------------------------------------------------------------------- /angular/my-ng-app05/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angular/my-ng-app05/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-root', 5 | templateUrl: './app.component.html', 6 | styleUrls: ['./app.component.css'] 7 | }) 8 | export class AppComponent { 9 | title = 'my-ng-app05'; 10 | } 11 | -------------------------------------------------------------------------------- /angular/my-ng-app05/src/app/components/about/about.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app05/src/app/components/about/about.component.css -------------------------------------------------------------------------------- /angular/my-ng-app05/src/app/components/about/about.component.html: -------------------------------------------------------------------------------- 1 |

about works!

2 |
显示
-------------------------------------------------------------------------------- /angular/my-ng-app05/src/app/components/about/about.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit,ViewChild } from '@angular/core'; 2 | @Component({ 3 | selector: 'app-about', 4 | templateUrl: './about.component.html', 5 | styleUrls: ['./about.component.css'] 6 | }) 7 | export class AboutComponent implements OnInit { 8 | public flag:boolean=true; 9 | @ViewChild('app',{static:false}) app:any; 10 | constructor() { } 11 | ngOnInit() { 12 | 13 | } 14 | ngAfterViewInit(){ 15 | console.log(this.app) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /angular/my-ng-app05/src/app/components/home/home.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app05/src/app/components/home/home.component.css -------------------------------------------------------------------------------- /angular/my-ng-app05/src/app/components/home/home.component.html: -------------------------------------------------------------------------------- 1 |

home works!

2 |

{{common.defaultCity}}

3 |

热门城市

4 | -------------------------------------------------------------------------------- /angular/my-ng-app05/src/app/services/common.service.spec.ts: -------------------------------------------------------------------------------- 1 | import { TestBed } from '@angular/core/testing'; 2 | 3 | import { CommonService } from './common.service'; 4 | 5 | describe('CommonService', () => { 6 | beforeEach(() => TestBed.configureTestingModule({})); 7 | 8 | it('should be created', () => { 9 | const service: CommonService = TestBed.get(CommonService); 10 | expect(service).toBeTruthy(); 11 | }); 12 | }); 13 | -------------------------------------------------------------------------------- /angular/my-ng-app05/src/app/services/common.service.ts: -------------------------------------------------------------------------------- 1 | import { Injectable } from '@angular/core'; 2 | 3 | @Injectable({ 4 | providedIn: 'root' 5 | }) 6 | export class CommonService { 7 | public defaultCity:string="武汉" 8 | constructor() { } 9 | getCity(){ 10 | if(localStorage.getItem("city")){ 11 | this.defaultCity=localStorage.getItem("city") 12 | } 13 | return this.defaultCity 14 | } 15 | changeCity(value:string){ 16 | this.defaultCity=value; 17 | localStorage.setItem("city",value) 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /angular/my-ng-app05/src/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app05/src/assets/.gitkeep -------------------------------------------------------------------------------- /angular/my-ng-app05/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /angular/my-ng-app05/src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app05/src/favicon.ico -------------------------------------------------------------------------------- /angular/my-ng-app05/src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | MyNgApp05 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /angular/my-ng-app05/src/main.ts: -------------------------------------------------------------------------------- 1 | import { enableProdMode } from '@angular/core'; 2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 3 | 4 | import { AppModule } from './app/app.module'; 5 | import { environment } from './environments/environment'; 6 | 7 | if (environment.production) { 8 | enableProdMode(); 9 | } 10 | 11 | platformBrowserDynamic().bootstrapModule(AppModule) 12 | .catch(err => console.error(err)); 13 | -------------------------------------------------------------------------------- /angular/my-ng-app05/src/styles.css: -------------------------------------------------------------------------------- 1 | /* You can add global styles to this file, and also import other style files */ 2 | -------------------------------------------------------------------------------- /angular/my-ng-app05/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./out-tsc/app", 5 | "types": [] 6 | }, 7 | "files": [ 8 | "src/main.ts", 9 | "src/polyfills.ts" 10 | ], 11 | "include": [ 12 | "src/**/*.ts" 13 | ], 14 | "exclude": [ 15 | "src/test.ts", 16 | "src/**/*.spec.ts" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /angular/my-ng-app05/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./out-tsc/spec", 5 | "types": [ 6 | "jasmine", 7 | "node" 8 | ] 9 | }, 10 | "files": [ 11 | "src/test.ts", 12 | "src/polyfills.ts" 13 | ], 14 | "include": [ 15 | "src/**/*.spec.ts", 16 | "src/**/*.d.ts" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /angular/my-ng-app06/.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see https://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | max_line_length = off 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /angular/my-ng-app06/browserslist: -------------------------------------------------------------------------------- 1 | # This file is used by the build system to adjust CSS and JS output to support the specified browsers below. 2 | # For additional information regarding the format and rule options, please see: 3 | # https://github.com/browserslist/browserslist#queries 4 | 5 | # You can see what browsers were selected by your queries by running: 6 | # npx browserslist 7 | 8 | > 0.5% 9 | last 2 versions 10 | Firefox ESR 11 | not dead 12 | not IE 9-11 # For IE 9-11 support, remove 'not'. -------------------------------------------------------------------------------- /angular/my-ng-app06/e2e/src/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | navigateTo() { 5 | return browser.get(browser.baseUrl) as Promise; 6 | } 7 | 8 | getTitleText() { 9 | return element(by.css('app-root .content span')).getText() as Promise; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /angular/my-ng-app06/e2e/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/e2e", 5 | "module": "commonjs", 6 | "target": "es5", 7 | "types": [ 8 | "jasmine", 9 | "jasminewd2", 10 | "node" 11 | ] 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /angular/my-ng-app06/src/app/app.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app06/src/app/app.component.css -------------------------------------------------------------------------------- /angular/my-ng-app06/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angular/my-ng-app06/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-root', 5 | templateUrl: './app.component.html', 6 | styleUrls: ['./app.component.css'] 7 | }) 8 | export class AppComponent { 9 | title = 'my-ng-app06'; 10 | } 11 | -------------------------------------------------------------------------------- /angular/my-ng-app06/src/app/app.module.ts: -------------------------------------------------------------------------------- 1 | import { BrowserModule } from '@angular/platform-browser'; 2 | import { NgModule } from '@angular/core'; 3 | 4 | import { AppRoutingModule } from './app-routing.module'; 5 | import { AppComponent } from './app.component'; 6 | 7 | @NgModule({ 8 | declarations: [ 9 | AppComponent, 10 | ], 11 | imports: [ 12 | BrowserModule, 13 | AppRoutingModule, 14 | ], 15 | providers: [], 16 | bootstrap: [AppComponent] 17 | }) 18 | export class AppModule { } 19 | -------------------------------------------------------------------------------- /angular/my-ng-app06/src/app/views/about/about-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { Routes, RouterModule } from '@angular/router'; 3 | import {AboutComponent} from './about.component' 4 | 5 | const routes: Routes = [ 6 | {path:"",component:AboutComponent} 7 | ]; 8 | 9 | @NgModule({ 10 | imports: [RouterModule.forChild(routes)], 11 | exports: [RouterModule] 12 | }) 13 | export class AboutRoutingModule { } 14 | -------------------------------------------------------------------------------- /angular/my-ng-app06/src/app/views/about/about.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app06/src/app/views/about/about.component.css -------------------------------------------------------------------------------- /angular/my-ng-app06/src/app/views/about/about.component.html: -------------------------------------------------------------------------------- 1 |

about works!

2 | -------------------------------------------------------------------------------- /angular/my-ng-app06/src/app/views/about/about.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-about', 5 | templateUrl: './about.component.html', 6 | styleUrls: ['./about.component.css'] 7 | }) 8 | export class AboutComponent implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /angular/my-ng-app06/src/app/views/about/about.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | 4 | import { AboutRoutingModule } from './about-routing.module'; 5 | import { AboutComponent } from './about.component'; 6 | 7 | 8 | @NgModule({ 9 | declarations: [AboutComponent], 10 | imports: [ 11 | CommonModule, 12 | AboutRoutingModule 13 | ] 14 | }) 15 | export class AboutModule { } 16 | -------------------------------------------------------------------------------- /angular/my-ng-app06/src/app/views/home/home-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { Routes, RouterModule } from '@angular/router'; 3 | import { HomeComponent } from './home.component'; 4 | 5 | const routes: Routes = [ 6 | {path:"",component:HomeComponent} 7 | ]; 8 | 9 | @NgModule({ 10 | imports: [RouterModule.forChild(routes)], 11 | exports: [RouterModule] 12 | }) 13 | export class HomeRoutingModule { } 14 | -------------------------------------------------------------------------------- /angular/my-ng-app06/src/app/views/home/home.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app06/src/app/views/home/home.component.css -------------------------------------------------------------------------------- /angular/my-ng-app06/src/app/views/home/home.component.html: -------------------------------------------------------------------------------- 1 |

home works!

2 | -------------------------------------------------------------------------------- /angular/my-ng-app06/src/app/views/home/home.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-home', 5 | templateUrl: './home.component.html', 6 | styleUrls: ['./home.component.css'] 7 | }) 8 | export class HomeComponent implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /angular/my-ng-app06/src/app/views/home/home.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | 4 | import { HomeRoutingModule } from './home-routing.module'; 5 | import { HomeComponent } from './home.component'; 6 | 7 | 8 | @NgModule({ 9 | declarations: [HomeComponent], 10 | imports: [ 11 | CommonModule, 12 | HomeRoutingModule 13 | ] 14 | }) 15 | export class HomeModule { } 16 | -------------------------------------------------------------------------------- /angular/my-ng-app06/src/app/views/news/components/morning/morning.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app06/src/app/views/news/components/morning/morning.component.css -------------------------------------------------------------------------------- /angular/my-ng-app06/src/app/views/news/components/morning/morning.component.html: -------------------------------------------------------------------------------- 1 |

morning works!

2 | -------------------------------------------------------------------------------- /angular/my-ng-app06/src/app/views/news/components/morning/morning.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-morning', 5 | templateUrl: './morning.component.html', 6 | styleUrls: ['./morning.component.css'] 7 | }) 8 | export class MorningComponent implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /angular/my-ng-app06/src/app/views/news/components/night/night.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app06/src/app/views/news/components/night/night.component.css -------------------------------------------------------------------------------- /angular/my-ng-app06/src/app/views/news/components/night/night.component.html: -------------------------------------------------------------------------------- 1 |

night works!

2 | -------------------------------------------------------------------------------- /angular/my-ng-app06/src/app/views/news/components/night/night.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-night', 5 | templateUrl: './night.component.html', 6 | styleUrls: ['./night.component.css'] 7 | }) 8 | export class NightComponent implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /angular/my-ng-app06/src/app/views/news/news.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app06/src/app/views/news/news.component.css -------------------------------------------------------------------------------- /angular/my-ng-app06/src/app/views/news/news.component.html: -------------------------------------------------------------------------------- 1 |

news works!

2 | -------------------------------------------------------------------------------- /angular/my-ng-app06/src/app/views/news/news.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-news', 5 | templateUrl: './news.component.html', 6 | styleUrls: ['./news.component.css'] 7 | }) 8 | export class NewsComponent implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /angular/my-ng-app06/src/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app06/src/assets/.gitkeep -------------------------------------------------------------------------------- /angular/my-ng-app06/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /angular/my-ng-app06/src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app06/src/favicon.ico -------------------------------------------------------------------------------- /angular/my-ng-app06/src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | MyNgApp06 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /angular/my-ng-app06/src/main.ts: -------------------------------------------------------------------------------- 1 | import { enableProdMode } from '@angular/core'; 2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 3 | 4 | import { AppModule } from './app/app.module'; 5 | import { environment } from './environments/environment'; 6 | 7 | if (environment.production) { 8 | enableProdMode(); 9 | } 10 | 11 | platformBrowserDynamic().bootstrapModule(AppModule) 12 | .catch(err => console.error(err)); 13 | -------------------------------------------------------------------------------- /angular/my-ng-app06/src/styles.css: -------------------------------------------------------------------------------- 1 | /* You can add global styles to this file, and also import other style files */ 2 | -------------------------------------------------------------------------------- /angular/my-ng-app06/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./out-tsc/app", 5 | "types": [] 6 | }, 7 | "files": [ 8 | "src/main.ts", 9 | "src/polyfills.ts" 10 | ], 11 | "include": [ 12 | "src/**/*.ts" 13 | ], 14 | "exclude": [ 15 | "src/test.ts", 16 | "src/**/*.spec.ts" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /angular/my-ng-app06/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./out-tsc/spec", 5 | "types": [ 6 | "jasmine", 7 | "node" 8 | ] 9 | }, 10 | "files": [ 11 | "src/test.ts", 12 | "src/polyfills.ts" 13 | ], 14 | "include": [ 15 | "src/**/*.spec.ts", 16 | "src/**/*.d.ts" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /angular/my-ng-app07/.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see https://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | max_line_length = off 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /angular/my-ng-app07/browserslist: -------------------------------------------------------------------------------- 1 | # This file is used by the build system to adjust CSS and JS output to support the specified browsers below. 2 | # For additional information regarding the format and rule options, please see: 3 | # https://github.com/browserslist/browserslist#queries 4 | 5 | # You can see what browsers were selected by your queries by running: 6 | # npx browserslist 7 | 8 | > 0.5% 9 | last 2 versions 10 | Firefox ESR 11 | not dead 12 | not IE 9-11 # For IE 9-11 support, remove 'not'. -------------------------------------------------------------------------------- /angular/my-ng-app07/e2e/src/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | navigateTo() { 5 | return browser.get(browser.baseUrl) as Promise; 6 | } 7 | 8 | getTitleText() { 9 | return element(by.css('app-root .content span')).getText() as Promise; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /angular/my-ng-app07/e2e/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/e2e", 5 | "module": "commonjs", 6 | "target": "es5", 7 | "types": [ 8 | "jasmine", 9 | "jasminewd2", 10 | "node" 11 | ] 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /angular/my-ng-app07/src/app/app-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { Routes, RouterModule } from '@angular/router'; 3 | 4 | 5 | const routes: Routes = [ 6 | { 7 | path:"home", 8 | loadChildren:()=>import('./views/home/home.module').then(m=>m.HomeModule) 9 | } 10 | ]; 11 | 12 | @NgModule({ 13 | imports: [RouterModule.forRoot(routes)], 14 | exports: [RouterModule] 15 | }) 16 | export class AppRoutingModule { } 17 | -------------------------------------------------------------------------------- /angular/my-ng-app07/src/app/app.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app07/src/app/app.component.css -------------------------------------------------------------------------------- /angular/my-ng-app07/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /angular/my-ng-app07/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-root', 5 | templateUrl: './app.component.html', 6 | styleUrls: ['./app.component.css'] 7 | }) 8 | export class AppComponent { 9 | title = 'my-ng-app07'; 10 | } 11 | -------------------------------------------------------------------------------- /angular/my-ng-app07/src/app/app.module.ts: -------------------------------------------------------------------------------- 1 | import { BrowserModule } from '@angular/platform-browser'; 2 | import { NgModule } from '@angular/core'; 3 | 4 | import { AppRoutingModule } from './app-routing.module'; 5 | import { AppComponent } from './app.component'; 6 | 7 | @NgModule({ 8 | declarations: [ 9 | AppComponent, 10 | ], 11 | imports: [ 12 | BrowserModule, 13 | AppRoutingModule 14 | ], 15 | providers: [], 16 | bootstrap: [AppComponent] 17 | }) 18 | export class AppModule { } 19 | -------------------------------------------------------------------------------- /angular/my-ng-app07/src/app/views/home/components/morning/morning.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app07/src/app/views/home/components/morning/morning.component.css -------------------------------------------------------------------------------- /angular/my-ng-app07/src/app/views/home/components/morning/morning.component.html: -------------------------------------------------------------------------------- 1 |

morning works!

2 | -------------------------------------------------------------------------------- /angular/my-ng-app07/src/app/views/home/components/morning/morning.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-morning', 5 | templateUrl: './morning.component.html', 6 | styleUrls: ['./morning.component.css'] 7 | }) 8 | export class MorningComponent implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /angular/my-ng-app07/src/app/views/home/home.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app07/src/app/views/home/home.component.css -------------------------------------------------------------------------------- /angular/my-ng-app07/src/app/views/home/home.component.html: -------------------------------------------------------------------------------- 1 |

home works!

2 | 3 | -------------------------------------------------------------------------------- /angular/my-ng-app07/src/app/views/home/home.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-home', 5 | templateUrl: './home.component.html', 6 | styleUrls: ['./home.component.css'] 7 | }) 8 | export class HomeComponent implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /angular/my-ng-app07/src/app/views/home/home.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | 4 | import { HomeRoutingModule } from './home-routing.module'; 5 | import { HomeComponent } from './home.component'; 6 | import { MorningComponent } from './components/morning/morning.component'; 7 | 8 | 9 | @NgModule({ 10 | declarations: [HomeComponent, MorningComponent], 11 | imports: [ 12 | CommonModule, 13 | HomeRoutingModule 14 | ] 15 | }) 16 | export class HomeModule { } 17 | -------------------------------------------------------------------------------- /angular/my-ng-app07/src/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app07/src/assets/.gitkeep -------------------------------------------------------------------------------- /angular/my-ng-app07/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /angular/my-ng-app07/src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/angular/my-ng-app07/src/favicon.ico -------------------------------------------------------------------------------- /angular/my-ng-app07/src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | MyNgApp07 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /angular/my-ng-app07/src/main.ts: -------------------------------------------------------------------------------- 1 | import { enableProdMode } from '@angular/core'; 2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 3 | 4 | import { AppModule } from './app/app.module'; 5 | import { environment } from './environments/environment'; 6 | 7 | if (environment.production) { 8 | enableProdMode(); 9 | } 10 | 11 | platformBrowserDynamic().bootstrapModule(AppModule) 12 | .catch(err => console.error(err)); 13 | -------------------------------------------------------------------------------- /angular/my-ng-app07/src/styles.css: -------------------------------------------------------------------------------- 1 | /* You can add global styles to this file, and also import other style files */ 2 | -------------------------------------------------------------------------------- /angular/my-ng-app07/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./out-tsc/app", 5 | "types": [] 6 | }, 7 | "files": [ 8 | "src/main.ts", 9 | "src/polyfills.ts" 10 | ], 11 | "include": [ 12 | "src/**/*.ts" 13 | ], 14 | "exclude": [ 15 | "src/test.ts", 16 | "src/**/*.spec.ts" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /angular/my-ng-app07/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./out-tsc/spec", 5 | "types": [ 6 | "jasmine", 7 | "node" 8 | ] 9 | }, 10 | "files": [ 11 | "src/test.ts", 12 | "src/polyfills.ts" 13 | ], 14 | "include": [ 15 | "src/**/*.spec.ts", 16 | "src/**/*.d.ts" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /database/01-start/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /database/01-start/models/admin.js: -------------------------------------------------------------------------------- 1 | const mongoose=require('./db') 2 | var AdminSchema =new mongoose.Schema({ 3 | name:String, 4 | age:Number 5 | }) 6 | var Admin = mongoose.model('Admin',AdminSchema,'admin') 7 | module.exports=Admin; -------------------------------------------------------------------------------- /database/01-start/models/db.js: -------------------------------------------------------------------------------- 1 | const mongoose=require("mongoose") 2 | mongoose.connect('mongodb://localhost/student', {useNewUrlParser: true},(err)=>{ 3 | if(err){throw err}; 4 | console.log("数据库连接成功") 5 | }); 6 | module.exports=mongoose -------------------------------------------------------------------------------- /database/01-start/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "text", 3 | "version": "1.0.0", 4 | "main": "index.js", 5 | "license": "MIT", 6 | "dependencies": { 7 | "art-template": "^4.13.2", 8 | "koa": "^2.10.0", 9 | "koa-art-template": "^1.1.1", 10 | "koa-router": "^7.4.0", 11 | "koa2-cors": "^2.0.6", 12 | "mongoose": "^5.7.4" 13 | }, 14 | "scripts": { 15 | "start": "nodemon index.js" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /database/02add-edit - 副本/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /database/02add-edit - 副本/models/admin.js: -------------------------------------------------------------------------------- 1 | const mongoose=require('./db') 2 | //3.定义Schema和数据库中的表映射 3 | var AdminSchema =mongoose.Schema({ 4 | name:String, 5 | age:Number 6 | }) 7 | //4.定义模型,操作数据库 8 | var Admin = mongoose.model('Admin',AdminSchema,'admin'); 9 | module.exports=Admin -------------------------------------------------------------------------------- /database/02add-edit - 副本/models/db.js: -------------------------------------------------------------------------------- 1 | //1.导入mongoose 2 | const mongoose=require('mongoose') 3 | //2.连接数据库 4 | mongoose.connect( 'mongodb://127.0.0.1:27017/student', {useNewUrlParser: true},(err)=>{ 5 | if(err){throw err}; 6 | console.log("数据库连接成功") 7 | }); 8 | module.exports=mongoose -------------------------------------------------------------------------------- /database/02add-edit - 副本/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "02add-edit", 3 | "version": "1.0.0", 4 | "main": "index.js", 5 | "license": "MIT", 6 | "scripts": { 7 | "start": "nodemon index.js" 8 | }, 9 | "dependencies": { 10 | "art-template": "^4.13.2", 11 | "koa": "^2.10.0", 12 | "koa-art-template": "^1.1.1", 13 | "koa-bodyparser": "^4.2.1", 14 | "koa-router": "^7.4.0", 15 | "koa2-cors": "^2.0.6", 16 | "mongoose": "^5.7.5" 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /database/02add-edit/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /database/02add-edit/models/admin.js: -------------------------------------------------------------------------------- 1 | const mongoose=require('./db') 2 | //3.定义Schema和数据库中的表映射 3 | var AdminSchema =mongoose.Schema({ 4 | name:String, 5 | age:Number 6 | }) 7 | //4.定义模型,操作数据库 8 | var Admin = mongoose.model('Admin',AdminSchema,'admin'); 9 | module.exports=Admin -------------------------------------------------------------------------------- /database/02add-edit/models/db.js: -------------------------------------------------------------------------------- 1 | //1.导入mongoose 2 | const mongoose=require('mongoose') 3 | //2.连接数据库 4 | mongoose.connect( 'mongodb://127.0.0.1:27017/student', {useNewUrlParser: true},(err)=>{ 5 | if(err){throw err}; 6 | console.log("数据库连接成功") 7 | }); 8 | module.exports=mongoose -------------------------------------------------------------------------------- /database/02add-edit/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "02add-edit", 3 | "version": "1.0.0", 4 | "main": "index.js", 5 | "license": "MIT", 6 | "scripts": { 7 | "start": "nodemon index.js" 8 | }, 9 | "dependencies": { 10 | "art-template": "^4.13.2", 11 | "koa": "^2.10.0", 12 | "koa-art-template": "^1.1.1", 13 | "koa-bodyparser": "^4.2.1", 14 | "koa-router": "^7.4.0", 15 | "koa2-cors": "^2.0.6", 16 | "mongoose": "^5.7.5" 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /html-css/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /html-css/ajax-demo10/images/yan.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/ajax-demo10/images/yan.jpg -------------------------------------------------------------------------------- /html-css/ajax-demo10/test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 19 | 20 | -------------------------------------------------------------------------------- /html-css/banner-day10/images/01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/banner-day10/images/01.png -------------------------------------------------------------------------------- /html-css/banner-day10/images/02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/banner-day10/images/02.png -------------------------------------------------------------------------------- /html-css/banner-day10/images/03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/banner-day10/images/03.png -------------------------------------------------------------------------------- /html-css/banner-day10/images/04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/banner-day10/images/04.png -------------------------------------------------------------------------------- /html-css/banner-day10/images/05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/banner-day10/images/05.png -------------------------------------------------------------------------------- /html-css/banner-day10/images/icon-slides.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/banner-day10/images/icon-slides.png -------------------------------------------------------------------------------- /html-css/banner-day11/images/01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/banner-day11/images/01.png -------------------------------------------------------------------------------- /html-css/banner-day11/images/02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/banner-day11/images/02.png -------------------------------------------------------------------------------- /html-css/banner-day11/images/03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/banner-day11/images/03.png -------------------------------------------------------------------------------- /html-css/banner-day11/images/04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/banner-day11/images/04.png -------------------------------------------------------------------------------- /html-css/banner-day11/images/05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/banner-day11/images/05.png -------------------------------------------------------------------------------- /html-css/banner-day11/images/icon-slides.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/banner-day11/images/icon-slides.png -------------------------------------------------------------------------------- /html-css/bs-day12/images/item01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/bs-day12/images/item01.jpg -------------------------------------------------------------------------------- /html-css/bs-day12/images/item02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/bs-day12/images/item02.jpg -------------------------------------------------------------------------------- /html-css/bs-day12/images/item03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/bs-day12/images/item03.jpg -------------------------------------------------------------------------------- /html-css/bs-day12/images/item04.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/bs-day12/images/item04.jpg -------------------------------------------------------------------------------- /html-css/bs-day12/images/item05.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/bs-day12/images/item05.jpg -------------------------------------------------------------------------------- /html-css/bs-day12/images/item06.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/bs-day12/images/item06.jpg -------------------------------------------------------------------------------- /html-css/bs-day13/images/logo0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/bs-day13/images/logo0.png -------------------------------------------------------------------------------- /html-css/bs-day13/images/logo1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/bs-day13/images/logo1.png -------------------------------------------------------------------------------- /html-css/html-day01/03test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /html-css/html-day01/images/wan.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/html-day01/images/wan.jpg -------------------------------------------------------------------------------- /html-css/html-day01/images/yan.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/html-day01/images/yan.jpg -------------------------------------------------------------------------------- /html-css/html-day02/images/about.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/html-day02/images/about.jpg -------------------------------------------------------------------------------- /html-css/html-day02/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/html-day02/images/logo.png -------------------------------------------------------------------------------- /html-css/html-day02/readme.md: -------------------------------------------------------------------------------- 1 | # node-demo项目启动 2 | 3 | ``` 4 | node -v //看node.js是否安装成功 5 | npm init -y //配置npm 6 | npm i nodemon -g //监控入口文件的执行 -g的模块只用安装一遍 7 | ``` 8 | 9 | -------------------------------------------------------------------------------- /html-css/html-day03/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/html-day03/images/bg.png -------------------------------------------------------------------------------- /html-css/html-day03/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/html-day03/images/logo.png -------------------------------------------------------------------------------- /html-css/html-day04/10homework.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 10homework 11 | 12 | -------------------------------------------------------------------------------- /html-css/html-day05/01封装.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 18 | 19 | -------------------------------------------------------------------------------- /html-css/html-day05/images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/html-day05/images/icon.png -------------------------------------------------------------------------------- /html-css/html-day05/images/music.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/html-day05/images/music.jpg -------------------------------------------------------------------------------- /html-css/html-day05/images/phone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/html-day05/images/phone.png -------------------------------------------------------------------------------- /html-css/html-day07/images/icons_type.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/html-day07/images/icons_type.png -------------------------------------------------------------------------------- /html-css/html-day07/images/location.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/html-day07/images/location.png -------------------------------------------------------------------------------- /html-css/html-day08/html/detail.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 |

我是详情页

11 | 12 | -------------------------------------------------------------------------------- /html-css/html-day08/html/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 |

我是首页

11 | 12 | -------------------------------------------------------------------------------- /html-css/html-day08/images/erweima.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/html-day08/images/erweima.png -------------------------------------------------------------------------------- /html-css/html-day09/08前加加.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 17 | 18 | -------------------------------------------------------------------------------- /html-css/html-day09/09while.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 18 | 19 | -------------------------------------------------------------------------------- /html-css/html-day09/10for.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 16 | 17 | -------------------------------------------------------------------------------- /html-css/koa-day15/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /html-css/koa-day15/app.js: -------------------------------------------------------------------------------- 1 | const koa = require('koa'); 2 | const app = new koa(); 3 | const router = require("koa-router")(); 4 | router.get("/",async ctx=>{ 5 | ctx.body="豆瓣top250" 6 | }) 7 | router.get("/detail",async ctx=>{ 8 | ctx.body = "电影详情" 9 | }) 10 | // ctrl+c退出命名行 11 | app.use(router.routes()) 12 | app.listen(8080) -------------------------------------------------------------------------------- /html-css/koa-day15/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "koa-day15", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "start": "nodemon app.js", 8 | "test": "echo \"Error: no test specified\" && exit 1" 9 | }, 10 | "keywords": [], 11 | "author": "", 12 | "license": "ISC", 13 | "dependencies": { 14 | "koa": "^2.7.0", 15 | "koa-router": "^7.4.0" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /html-css/koa-day16/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /html-css/koa-day16/app.js: -------------------------------------------------------------------------------- 1 | const koa = require('koa'); 2 | const app = new koa(); 3 | const render = require('koa-art-template'); 4 | const { 5 | resolve 6 | } = require('path') 7 | const index = require('./routers/index') 8 | const detail = require('./routers/detail') 9 | render(app, { 10 | root: resolve(__dirname, 'views'), 11 | extname: '.html', 12 | debug: process.env.NODE_ENV !== 'production' 13 | }); 14 | app.use(index.routes()) 15 | app.use(detail.routes()) 16 | app.listen(8080) -------------------------------------------------------------------------------- /html-css/koa-day16/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "koa-day16", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "start": "nodemon app.js", 8 | "test": "echo \"Error: no test specified\" && exit 1" 9 | }, 10 | "keywords": [], 11 | "author": "", 12 | "license": "ISC", 13 | "dependencies": { 14 | "art-template": "^4.13.2", 15 | "axios": "^0.19.0", 16 | "koa": "^2.7.0", 17 | "koa-art-template": "^1.1.1", 18 | "koa-router": "^7.4.0" 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /html-css/koa-day16/routers/detail.js: -------------------------------------------------------------------------------- 1 | const router = require('koa-router')(); 2 | const axios = require('axios'); 3 | router.get("/detail/:id",async ctx=>{ 4 | var id = ctx.params.id; 5 | var url =`https://douban.uieee.com/v2/movie/${id}`; 6 | var data = await axios.get(url); 7 | await ctx.render('detail',{data:data.data}) 8 | }) 9 | module.exports = router; -------------------------------------------------------------------------------- /html-css/koa-day16/routers/index.js: -------------------------------------------------------------------------------- 1 | const router = require('koa-router')(); 2 | const axios = require('axios'); 3 | router.get("/",async ctx=>{ 4 | var url = "https://douban.uieee.com/v2/movie/top250"; 5 | var data = await axios.get(url); 6 | var movies = data.data.subjects; 7 | await ctx.render('index',{movies:movies}) 8 | }) 9 | module.exports = router; -------------------------------------------------------------------------------- /html-css/koa-day16/views/detail.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Document 9 | 10 | 11 | 12 |

{{data.summary}}

13 | 14 | -------------------------------------------------------------------------------- /html-css/koa-server/app.js: -------------------------------------------------------------------------------- 1 | const koa = require('koa'); 2 | const router = require('koa-router')(); 3 | const app = new koa(); 4 | router.get('/',async ctx=>{ 5 | // 从数据库中取得的user="chengchao" pwd="123456" 6 | console.log(ctx.query) 7 | if(ctx.query.user==="chengchao" && ctx.query.pwd ==="123456"){ 8 | ctx.body = "登陆成功" 9 | } 10 | }) 11 | app.use(router.routes()) 12 | app.listen(8080) -------------------------------------------------------------------------------- /html-css/koa-server/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "koa-server", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "start": "nodemon app.js", 8 | "test": "echo \"Error: no test specified\" && exit 1" 9 | }, 10 | "keywords": [], 11 | "author": "", 12 | "license": "ISC", 13 | "dependencies": { 14 | "koa": "^2.7.0", 15 | "koa-router": "^7.4.0" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /html-css/ps攻略.md: -------------------------------------------------------------------------------- 1 | psd的设计稿就是由一个个图层组成 2 | 3 | ``` 4 | ctrl+n 新建psd稿 5 | alt+鼠标的滚轮 放大缩小 6 | delete //删除图层 7 | ctrl+shift+alt+n //新建图层 8 | ctrl+delete //填充背景色 9 | alt+delete //填充前景色 10 | ``` 11 | 12 | ``` 13 | //选区 14 | alt 减选 15 | shift 加选 16 | ctrl+d //取消选区 17 | ``` 18 | 19 | 想移动一个图形,首先要选中那个图层所在的图层 20 | 21 | ## 2.如何得到一个像素图 22 | 23 | ``` 24 | 1.新建一个选区 25 | 2.新建一个图层(一个图,一个图层)(ctrl+shift+alt+n) 26 | 3.填充颜色(alt+delete/ctrl+delete) 27 | 4.取消选区 ctrl+d 28 | 29 | ``` 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /html-css/small-pro/app.js: -------------------------------------------------------------------------------- 1 | //wx-app 2 | App({ 3 | //onLaunch,onShow: options(path,query,scene,shareTicket,referrerInfo(appId,extraData)) 4 | onLaunch: function(options){ 5 | 6 | } 7 | }); -------------------------------------------------------------------------------- /html-css/small-pro/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "pages": [ 3 | "pages/index/index" 4 | ], 5 | "window": { 6 | "navigationBarBackgroundColor": "#000000", 7 | "navigationBarTextStyle": "white", 8 | "navigationBarTitleText": "", 9 | "backgroundColor": "#ffffff", 10 | "backgroundTextStyle": "dark", 11 | "enablePullDownRefresh": false 12 | }, 13 | "requiredBackgroundModes": [ 14 | "audio" 15 | ], 16 | "sitemapLocation": "sitemap.json" 17 | } -------------------------------------------------------------------------------- /html-css/small-pro/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/small-pro/images/bg.png -------------------------------------------------------------------------------- /html-css/small-pro/images/music.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/small-pro/images/music.png -------------------------------------------------------------------------------- /html-css/small-pro/images/pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/small-pro/images/pause.png -------------------------------------------------------------------------------- /html-css/small-pro/images/play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html-css/small-pro/images/play.png -------------------------------------------------------------------------------- /html-css/small-pro/pages/index/index.json: -------------------------------------------------------------------------------- 1 | { 2 | 3 | } -------------------------------------------------------------------------------- /html-css/small-pro/pages/index/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /html-css/small-pro/sitemap.json: -------------------------------------------------------------------------------- 1 | { 2 | "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html", 3 | "rules": [{ 4 | "action": "allow", 5 | "page": "*" 6 | }] 7 | } -------------------------------------------------------------------------------- /html复习/05bg/images/aboutus_banner.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html复习/05bg/images/aboutus_banner.jpg -------------------------------------------------------------------------------- /html复习/08demo/images/item02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html复习/08demo/images/item02.jpg -------------------------------------------------------------------------------- /html复习/grid布局.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html复习/grid布局.txt -------------------------------------------------------------------------------- /html复习/note.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/html复习/note.txt -------------------------------------------------------------------------------- /ionic/.gitignore: -------------------------------------------------------------------------------- 1 | # Specifies intentionally untracked files to ignore when using Git 2 | # http://git-scm.com/docs/gitignore 3 | 4 | *~ 5 | *.sw[mnpcod] 6 | .tmp 7 | *.tmp 8 | *.tmp.* 9 | *.sublime-project 10 | *.sublime-workspace 11 | .DS_Store 12 | Thumbs.db 13 | UserInterfaceState.xcuserstate 14 | $RECYCLE.BIN/ 15 | 16 | *.log 17 | log.txt 18 | npm-debug.log* 19 | 20 | /.idea 21 | /.ionic 22 | /.sass-cache 23 | /.sourcemaps 24 | /.versions 25 | /.vscode 26 | /coverage 27 | /dist 28 | /node_modules 29 | /platforms 30 | /plugins 31 | /www 32 | -------------------------------------------------------------------------------- /ionic/browserslist: -------------------------------------------------------------------------------- 1 | # This file is used by the build system to adjust CSS and JS output to support the specified browsers below. 2 | # For additional information regarding the format and rule options, please see: 3 | # https://github.com/browserslist/browserslist#queries 4 | 5 | # You can see what browsers were selected by your queries by running: 6 | # npx browserslist 7 | 8 | > 0.5% 9 | last 2 versions 10 | Firefox ESR 11 | not dead 12 | not IE 9-11 # For IE 9-11 support, remove 'not'. 13 | -------------------------------------------------------------------------------- /ionic/e2e/src/app.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import { AppPage } from './app.po'; 2 | 3 | describe('new App', () => { 4 | let page: AppPage; 5 | 6 | beforeEach(() => { 7 | page = new AppPage(); 8 | }); 9 | 10 | it('should display welcome message', () => { 11 | page.navigateTo(); 12 | expect(page.getPageTitle()).toContain('Tab One'); 13 | }); 14 | }); 15 | -------------------------------------------------------------------------------- /ionic/e2e/src/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | navigateTo() { 5 | return browser.get('/'); 6 | } 7 | 8 | getPageTitle() { 9 | return element(by.css('ion-title')).getText(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /ionic/e2e/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "module": "commonjs", 6 | "target": "es5", 7 | "types": [ 8 | "jasmine", 9 | "jasminewd2", 10 | "node" 11 | ] 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ionic/ionic.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "myApp", 3 | "integrations": { 4 | "cordova": {} 5 | }, 6 | "type": "angular" 7 | } 8 | -------------------------------------------------------------------------------- /ionic/resources/README.md: -------------------------------------------------------------------------------- 1 | These are Cordova resources. You can replace icon.png and splash.png and run 2 | `ionic cordova resources` to generate custom icons and splash screens for your 3 | app. See `ionic cordova resources --help` for details. 4 | 5 | Cordova reference documentation: 6 | 7 | - Icons: https://cordova.apache.org/docs/en/latest/config_ref/images.html 8 | - Splash Screens: https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-splashscreen/ 9 | -------------------------------------------------------------------------------- /ionic/resources/android/icon/drawable-hdpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/android/icon/drawable-hdpi-icon.png -------------------------------------------------------------------------------- /ionic/resources/android/icon/drawable-ldpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/android/icon/drawable-ldpi-icon.png -------------------------------------------------------------------------------- /ionic/resources/android/icon/drawable-mdpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/android/icon/drawable-mdpi-icon.png -------------------------------------------------------------------------------- /ionic/resources/android/icon/drawable-xhdpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/android/icon/drawable-xhdpi-icon.png -------------------------------------------------------------------------------- /ionic/resources/android/icon/drawable-xxhdpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/android/icon/drawable-xxhdpi-icon.png -------------------------------------------------------------------------------- /ionic/resources/android/icon/drawable-xxxhdpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/android/icon/drawable-xxxhdpi-icon.png -------------------------------------------------------------------------------- /ionic/resources/android/splash/drawable-land-hdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/android/splash/drawable-land-hdpi-screen.png -------------------------------------------------------------------------------- /ionic/resources/android/splash/drawable-land-ldpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/android/splash/drawable-land-ldpi-screen.png -------------------------------------------------------------------------------- /ionic/resources/android/splash/drawable-land-mdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/android/splash/drawable-land-mdpi-screen.png -------------------------------------------------------------------------------- /ionic/resources/android/splash/drawable-land-xhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/android/splash/drawable-land-xhdpi-screen.png -------------------------------------------------------------------------------- /ionic/resources/android/splash/drawable-land-xxhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/android/splash/drawable-land-xxhdpi-screen.png -------------------------------------------------------------------------------- /ionic/resources/android/splash/drawable-land-xxxhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/android/splash/drawable-land-xxxhdpi-screen.png -------------------------------------------------------------------------------- /ionic/resources/android/splash/drawable-port-hdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/android/splash/drawable-port-hdpi-screen.png -------------------------------------------------------------------------------- /ionic/resources/android/splash/drawable-port-ldpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/android/splash/drawable-port-ldpi-screen.png -------------------------------------------------------------------------------- /ionic/resources/android/splash/drawable-port-mdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/android/splash/drawable-port-mdpi-screen.png -------------------------------------------------------------------------------- /ionic/resources/android/splash/drawable-port-xhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/android/splash/drawable-port-xhdpi-screen.png -------------------------------------------------------------------------------- /ionic/resources/android/splash/drawable-port-xxhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/android/splash/drawable-port-xxhdpi-screen.png -------------------------------------------------------------------------------- /ionic/resources/android/splash/drawable-port-xxxhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/android/splash/drawable-port-xxxhdpi-screen.png -------------------------------------------------------------------------------- /ionic/resources/android/xml/network_security_config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | localhost 5 | 6 | 7 | -------------------------------------------------------------------------------- /ionic/resources/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/icon.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon-1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon-1024.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon-20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon-20.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon-20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon-20@2x.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon-20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon-20@3x.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon-24@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon-24@2x.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon-27.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon-27.5@2x.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon-29.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon-29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon-29@2x.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon-29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon-29@3x.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon-40.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon-40@2x.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon-40@3x.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon-44@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon-44@2x.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon-50.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon-50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon-50@2x.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon-60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon-60.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon-60@2x.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon-60@3x.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon-72.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon-72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon-72@2x.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon-76.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon-76@2x.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon-83.5@2x.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon-86@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon-86@2x.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon-98@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon-98@2x.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon-small.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon-small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon-small@2x.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon-small@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon-small@3x.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon.png -------------------------------------------------------------------------------- /ionic/resources/ios/icon/icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/icon/icon@2x.png -------------------------------------------------------------------------------- /ionic/resources/ios/splash/Default-2436h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/splash/Default-2436h.png -------------------------------------------------------------------------------- /ionic/resources/ios/splash/Default-568h@2x~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/splash/Default-568h@2x~iphone.png -------------------------------------------------------------------------------- /ionic/resources/ios/splash/Default-667h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/splash/Default-667h.png -------------------------------------------------------------------------------- /ionic/resources/ios/splash/Default-736h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/splash/Default-736h.png -------------------------------------------------------------------------------- /ionic/resources/ios/splash/Default-Landscape-2436h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/splash/Default-Landscape-2436h.png -------------------------------------------------------------------------------- /ionic/resources/ios/splash/Default-Landscape-736h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/splash/Default-Landscape-736h.png -------------------------------------------------------------------------------- /ionic/resources/ios/splash/Default-Landscape@2x~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/splash/Default-Landscape@2x~ipad.png -------------------------------------------------------------------------------- /ionic/resources/ios/splash/Default-Landscape@~ipadpro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/splash/Default-Landscape@~ipadpro.png -------------------------------------------------------------------------------- /ionic/resources/ios/splash/Default-Landscape~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/splash/Default-Landscape~ipad.png -------------------------------------------------------------------------------- /ionic/resources/ios/splash/Default-Portrait@2x~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/splash/Default-Portrait@2x~ipad.png -------------------------------------------------------------------------------- /ionic/resources/ios/splash/Default-Portrait@~ipadpro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/splash/Default-Portrait@~ipadpro.png -------------------------------------------------------------------------------- /ionic/resources/ios/splash/Default-Portrait~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/splash/Default-Portrait~ipad.png -------------------------------------------------------------------------------- /ionic/resources/ios/splash/Default@2x~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/splash/Default@2x~iphone.png -------------------------------------------------------------------------------- /ionic/resources/ios/splash/Default@2x~universal~anyany.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/splash/Default@2x~universal~anyany.png -------------------------------------------------------------------------------- /ionic/resources/ios/splash/Default~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/ios/splash/Default~iphone.png -------------------------------------------------------------------------------- /ionic/resources/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/resources/splash.png -------------------------------------------------------------------------------- /ionic/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /ionic/src/app/app.component.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/src/app/app.component.scss -------------------------------------------------------------------------------- /ionic/src/app/tab1/tab1.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Tab One 5 | 6 | 7 | 8 | 9 | 10 | 11 | detail 12 | Danger 13 | 14 | -------------------------------------------------------------------------------- /ionic/src/app/tab1/tab1.page.scss: -------------------------------------------------------------------------------- 1 | .welcome-card img { 2 | max-height: 35vh; 3 | overflow: hidden; 4 | } 5 | -------------------------------------------------------------------------------- /ionic/src/app/tab1/tab1.page.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-tab1', 5 | templateUrl: 'tab1.page.html', 6 | styleUrls: ['tab1.page.scss'] 7 | }) 8 | export class Tab1Page { 9 | 10 | constructor() {} 11 | 12 | } 13 | -------------------------------------------------------------------------------- /ionic/src/app/tab2/tab2.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Tab Two 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /ionic/src/app/tab2/tab2.page.scss: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /ionic/src/app/tab2/tab2.page.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-tab2', 5 | templateUrl: 'tab2.page.html', 6 | styleUrls: ['tab2.page.scss'] 7 | }) 8 | export class Tab2Page { 9 | 10 | constructor() {} 11 | 12 | } 13 | -------------------------------------------------------------------------------- /ionic/src/app/tab3/tab3.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Tab Three 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /ionic/src/app/tab3/tab3.page.scss: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /ionic/src/app/tab3/tab3.page.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-tab3', 5 | templateUrl: 'tab3.page.html', 6 | styleUrls: ['tab3.page.scss'] 7 | }) 8 | export class Tab3Page { 9 | 10 | constructor() {} 11 | 12 | } 13 | -------------------------------------------------------------------------------- /ionic/src/app/tab4/tab4-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { Routes, RouterModule } from '@angular/router'; 3 | 4 | import { Tab4Page } from './tab4.page'; 5 | 6 | const routes: Routes = [ 7 | { 8 | path: '', 9 | component: Tab4Page 10 | } 11 | ]; 12 | 13 | @NgModule({ 14 | imports: [RouterModule.forChild(routes)], 15 | exports: [RouterModule], 16 | }) 17 | export class Tab4PageRoutingModule {} 18 | -------------------------------------------------------------------------------- /ionic/src/app/tab4/tab4.page.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/src/app/tab4/tab4.page.scss -------------------------------------------------------------------------------- /ionic/src/app/tab4/tab4.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-tab4', 5 | templateUrl: './tab4.page.html', 6 | styleUrls: ['./tab4.page.scss'], 7 | }) 8 | export class Tab4Page implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /ionic/src/app/tabs/tabs.page.scss: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /ionic/src/app/tabs/tabs.page.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-tabs', 5 | templateUrl: 'tabs.page.html', 6 | styleUrls: ['tabs.page.scss'] 7 | }) 8 | export class TabsPage { 9 | 10 | constructor() {} 11 | 12 | } 13 | -------------------------------------------------------------------------------- /ionic/src/app/views/detail/detail-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { Routes, RouterModule } from '@angular/router'; 3 | 4 | import { DetailPage } from './detail.page'; 5 | 6 | const routes: Routes = [ 7 | { 8 | path: '', 9 | component: DetailPage 10 | } 11 | ]; 12 | 13 | @NgModule({ 14 | imports: [RouterModule.forChild(routes)], 15 | exports: [RouterModule], 16 | }) 17 | export class DetailPageRoutingModule {} 18 | -------------------------------------------------------------------------------- /ionic/src/app/views/detail/detail.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | detail 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /ionic/src/app/views/detail/detail.page.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/src/app/views/detail/detail.page.scss -------------------------------------------------------------------------------- /ionic/src/app/views/detail/detail.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-detail', 5 | templateUrl: './detail.page.html', 6 | styleUrls: ['./detail.page.scss'], 7 | }) 8 | export class DetailPage implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /ionic/src/assets/icon/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/ionic/src/assets/icon/favicon.png -------------------------------------------------------------------------------- /ionic/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /ionic/src/main.ts: -------------------------------------------------------------------------------- 1 | import { enableProdMode } from '@angular/core'; 2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 3 | 4 | import { AppModule } from './app/app.module'; 5 | import { environment } from './environments/environment'; 6 | 7 | if (environment.production) { 8 | enableProdMode(); 9 | } 10 | 11 | platformBrowserDynamic().bootstrapModule(AppModule) 12 | .catch(err => console.log(err)); 13 | -------------------------------------------------------------------------------- /ionic/src/zone-flags.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Prevents Angular change detection from 3 | * running with certain Web Component callbacks 4 | */ 5 | (window as any).__Zone_disable_customElements = true; 6 | -------------------------------------------------------------------------------- /ionic/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./out-tsc/app", 5 | "types": [] 6 | }, 7 | "include": [ 8 | "src/**/*.ts" 9 | ], 10 | "exclude": [ 11 | "src/test.ts", 12 | "src/**/*.spec.ts" 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /ionic/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./out-tsc/spec", 5 | "types": [ 6 | "jasmine", 7 | "node" 8 | ] 9 | }, 10 | "files": [ 11 | "src/test.ts", 12 | "src/zone-flags.ts", 13 | "src/polyfills.ts" 14 | ], 15 | "include": [ 16 | "src/**/*.spec.ts", 17 | "src/**/*.d.ts" 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /javascript/gene/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 18 | 19 | -------------------------------------------------------------------------------- /javascript/js-F20/01.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 17 | 18 | -------------------------------------------------------------------------------- /javascript/js-F20/02简单的正则.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 17 | 18 | -------------------------------------------------------------------------------- /javascript/js-F20/09.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 17 | 18 | -------------------------------------------------------------------------------- /javascript/js-F20/13.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 15 | 16 | -------------------------------------------------------------------------------- /javascript/js-day01/09for.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 16 | 17 | -------------------------------------------------------------------------------- /javascript/js-day01/index.js: -------------------------------------------------------------------------------- 1 | for(var i=0;i<=3;i++){ 2 | debugger 3 | console.log(i) 4 | } -------------------------------------------------------------------------------- /javascript/js-day02/01.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 18 | 19 | -------------------------------------------------------------------------------- /javascript/js-day02/03声明提前的执行代码.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Document 9 | 10 | 11 | 12 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /javascript/js-day02/04es.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 15 | 16 | -------------------------------------------------------------------------------- /javascript/js-day02/13算术运算符.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 17 | 18 | -------------------------------------------------------------------------------- /javascript/js-day02/18三目运算.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 16 | 17 | -------------------------------------------------------------------------------- /javascript/js-day02/images/下载 (1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day02/images/下载 (1).jpg -------------------------------------------------------------------------------- /javascript/js-day02/images/下载.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day02/images/下载.jpg -------------------------------------------------------------------------------- /javascript/js-day03/0.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 15 | 16 | -------------------------------------------------------------------------------- /javascript/js-day03/01.js: -------------------------------------------------------------------------------- 1 | console.log(a); 2 | var a=10; 3 | 4 | -------------------------------------------------------------------------------- /javascript/js-day03/04while.js: -------------------------------------------------------------------------------- 1 | var a=0; 2 | while(a<=3){ 3 | debugger; 4 | console.log(a); 5 | a++; 6 | } -------------------------------------------------------------------------------- /javascript/js-day04-server/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /javascript/js-day04-server/assets/config.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day04-server/assets/config.png -------------------------------------------------------------------------------- /javascript/js-day04-server/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "js-sever-day04", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "start": "nodemon app.js", 8 | "test": "echo \"Error: no test specified\" && exit 1" 9 | }, 10 | "keywords": [], 11 | "author": "", 12 | "license": "ISC", 13 | "dependencies": { 14 | "koa": "^2.8.1", 15 | "koa-bodyparser": "^4.2.1", 16 | "koa-router": "^7.4.0" 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /javascript/js-day04-server/readme.md: -------------------------------------------------------------------------------- 1 | ## 1.配置node.js nodemon 2 | 3 | ``` 4 | node -v 5 | nodemon -v 6 | ``` 7 | 8 | 如果没有输出 9 | 10 | ``` 11 | 1.安装node.js 12 | 2.npm i nodemon -g 13 | ``` 14 | 15 | ## 2.初始化npm仓库 16 | 17 | ``` 18 | npm init -y 19 | ``` 20 | 21 | 22 | 23 | ## 3.配置package.json文件 24 | 25 | ![](assets/config.png) 26 | 27 | 28 | 29 | ## 4.安装koa 30 | 31 | ``` 32 | npm i koa koa-router -S 33 | ``` 34 | 35 | -------------------------------------------------------------------------------- /javascript/js-day04/07onresize.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 16 | 17 | -------------------------------------------------------------------------------- /javascript/js-day04/11window.open.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 11 | 16 | 17 | -------------------------------------------------------------------------------- /javascript/js-day04/13setInterval.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 16 | 17 | -------------------------------------------------------------------------------- /javascript/js-day05/images/01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day05/images/01.png -------------------------------------------------------------------------------- /javascript/js-day05/images/02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day05/images/02.png -------------------------------------------------------------------------------- /javascript/js-day05/images/03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day05/images/03.png -------------------------------------------------------------------------------- /javascript/js-day05/images/04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day05/images/04.png -------------------------------------------------------------------------------- /javascript/js-day05/images/05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day05/images/05.png -------------------------------------------------------------------------------- /javascript/js-day05/images/14caaf6dd4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day05/images/14caaf6dd4.jpg -------------------------------------------------------------------------------- /javascript/js-day05/images/4a68818befe4ec269bf52b6f6f6ccae6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day05/images/4a68818befe4ec269bf52b6f6f6ccae6.jpg -------------------------------------------------------------------------------- /javascript/js-day06/04jquery添加.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Document 9 | 10 | 11 | 12 | 13 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /javascript/js-day06/05before-after.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 |

hello world

11 | 16 | 17 | -------------------------------------------------------------------------------- /javascript/js-day06/07同步异步.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Document 9 | 10 | 11 | 12 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /javascript/js-day06/10默认赋值.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 17 | 18 | -------------------------------------------------------------------------------- /javascript/js-day06/images/giphy.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day06/images/giphy.gif -------------------------------------------------------------------------------- /javascript/js-day06/lib/http.js: -------------------------------------------------------------------------------- 1 | /* 默认赋值,回调函数,箭头函数 */ 2 | function http(url,callback,type="get",){ 3 | $.ajax({ 4 | url, 5 | type, 6 | dataType:"json", 7 | success:res=>{ 8 | callback(res) 9 | } 10 | }) 11 | } -------------------------------------------------------------------------------- /javascript/js-day07/01.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 11 | 18 | 19 | -------------------------------------------------------------------------------- /javascript/js-day07/lib/http.js: -------------------------------------------------------------------------------- 1 | var baseUrl='https://music.aityp.com/' 2 | function http({url,type="get",callback}){ 3 | $.ajax({ 4 | url:baseUrl+url, 5 | type, 6 | dataType:"json", 7 | success:res=>{ 8 | callback(res) 9 | } 10 | }) 11 | } -------------------------------------------------------------------------------- /javascript/js-day07/lib/http1.js: -------------------------------------------------------------------------------- 1 | var url="https://douban.uieee.com/v2/movie/top250" 2 | function http({ 3 | type="get", 4 | callback, 5 | data, 6 | }){ 7 | $.ajax({ 8 | url, 9 | data, 10 | type, 11 | dataType:"jsonp", 12 | success:res=>{ 13 | callback(res) 14 | } 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /javascript/js-day08/04构造函数.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 14 | 15 | -------------------------------------------------------------------------------- /javascript/js-day08/13call.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 13 | 14 | -------------------------------------------------------------------------------- /javascript/js-day08/16块级作用域.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 18 | 19 | -------------------------------------------------------------------------------- /javascript/js-day08/17数组增加.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 18 | 19 | -------------------------------------------------------------------------------- /javascript/js-day08/19增加.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Document 9 | 10 | 11 | 12 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /javascript/js-day08/20前面添加.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 15 | 16 | -------------------------------------------------------------------------------- /javascript/js-day08/f-demo.ts: -------------------------------------------------------------------------------- 1 | function go(x:number):void{ 2 | console.log(x) 3 | } 4 | function show(y:string):string{ 5 | return y; 6 | } 7 | go(5); 8 | console.log(show("hello")) -------------------------------------------------------------------------------- /javascript/js-day08/images/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day08/images/loading.gif -------------------------------------------------------------------------------- /javascript/js-day08/lib/base.js: -------------------------------------------------------------------------------- 1 | function onReachBottom(){ 2 | var dh=document.documentElement.scrollHeight; 3 | var sh=Math.ceil(document.documentElement.scrollTop); 4 | var ah=document.documentElement.clientHeight; 5 | return sh+ah==dh?true:false 6 | } -------------------------------------------------------------------------------- /javascript/js-day09/images/01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day09/images/01.png -------------------------------------------------------------------------------- /javascript/js-day09/images/02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day09/images/02.png -------------------------------------------------------------------------------- /javascript/js-day09/images/03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day09/images/03.png -------------------------------------------------------------------------------- /javascript/js-day09/images/04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day09/images/04.png -------------------------------------------------------------------------------- /javascript/js-day09/images/05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day09/images/05.png -------------------------------------------------------------------------------- /javascript/js-day09/images/giphy.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day09/images/giphy.gif -------------------------------------------------------------------------------- /javascript/js-day09/images/icon-slides.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day09/images/icon-slides.png -------------------------------------------------------------------------------- /javascript/js-day10/01修改.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Document 9 | 10 | 11 | 12 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /javascript/js-day10/05reverse.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 15 | 16 | -------------------------------------------------------------------------------- /javascript/js-day10/07arr.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 17 | 18 | -------------------------------------------------------------------------------- /javascript/js-day10/images/01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day10/images/01.png -------------------------------------------------------------------------------- /javascript/js-day10/images/02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day10/images/02.png -------------------------------------------------------------------------------- /javascript/js-day10/images/03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day10/images/03.png -------------------------------------------------------------------------------- /javascript/js-day10/images/04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day10/images/04.png -------------------------------------------------------------------------------- /javascript/js-day10/images/05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day10/images/05.png -------------------------------------------------------------------------------- /javascript/js-day10/images/icon-slides.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day10/images/icon-slides.png -------------------------------------------------------------------------------- /javascript/js-day11/lib/a.js: -------------------------------------------------------------------------------- 1 | function http(){ 2 | console.log("http") 3 | } 4 | module.exports={ 5 | http 6 | } -------------------------------------------------------------------------------- /javascript/js-day11/lib/b.js: -------------------------------------------------------------------------------- 1 | var {http}=require('./a.js'); 2 | http() -------------------------------------------------------------------------------- /javascript/js-day11/lib/http.js: -------------------------------------------------------------------------------- 1 | var baseUrl="https://music.aityp.com/" 2 | function http({ 3 | url, 4 | success, 5 | type="get" 6 | }){ 7 | $.ajax({ 8 | url:baseUrl+url, 9 | type, 10 | success:res=>{ 11 | success(res) 12 | } 13 | }) 14 | } 15 | function getMvData(callback){ 16 | http({ 17 | url:"mv/first", 18 | success:res=>{ 19 | callback(res) 20 | } 21 | }) 22 | } -------------------------------------------------------------------------------- /javascript/js-day12/09-split.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 16 | 17 | -------------------------------------------------------------------------------- /javascript/js-day12/16.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 16 | 17 | -------------------------------------------------------------------------------- /javascript/js-day12/lib/http-promise.js: -------------------------------------------------------------------------------- 1 | var baseUrl="https://music.aityp.com/" 2 | function http(url){ 3 | return new Promise((resolve,reject)=>{ 4 | $.ajax({ 5 | url:baseUrl+url, 6 | type:"get", 7 | dataType:"json", 8 | success:res=>{ 9 | resolve(res) 10 | }, 11 | error:err=>{ 12 | reject(err) 13 | } 14 | }) 15 | }) 16 | } -------------------------------------------------------------------------------- /javascript/js-day13/05引用类型.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 17 | 18 | -------------------------------------------------------------------------------- /javascript/js-day13/12.axios.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 16 | 17 | -------------------------------------------------------------------------------- /javascript/js-day13/images/01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day13/images/01.jpg -------------------------------------------------------------------------------- /javascript/js-day13/images/02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day13/images/02.jpg -------------------------------------------------------------------------------- /javascript/js-day13/images/03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day13/images/03.jpg -------------------------------------------------------------------------------- /javascript/js-day13/images/04.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day13/images/04.jpg -------------------------------------------------------------------------------- /javascript/js-day13/images/05.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day13/images/05.jpg -------------------------------------------------------------------------------- /javascript/js-day13/images/06.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day13/images/06.jpg -------------------------------------------------------------------------------- /javascript/js-day13/images/07.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day13/images/07.jpg -------------------------------------------------------------------------------- /javascript/js-day13/images/08.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day13/images/08.jpg -------------------------------------------------------------------------------- /javascript/js-day13/images/09.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day13/images/09.jpg -------------------------------------------------------------------------------- /javascript/js-day13/images/10.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day13/images/10.jpg -------------------------------------------------------------------------------- /javascript/js-day13/images/11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day13/images/11.jpg -------------------------------------------------------------------------------- /javascript/js-day13/images/12.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day13/images/12.jpg -------------------------------------------------------------------------------- /javascript/js-day13/images/pan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day13/images/pan.png -------------------------------------------------------------------------------- /javascript/js-day13/images/pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day13/images/pause.png -------------------------------------------------------------------------------- /javascript/js-day13/images/play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day13/images/play.png -------------------------------------------------------------------------------- /javascript/js-day13/images/shou.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day13/images/shou.png -------------------------------------------------------------------------------- /javascript/js-day14/04.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 19 | 20 | -------------------------------------------------------------------------------- /javascript/js-day14/07async-http.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day14/07async-http.html -------------------------------------------------------------------------------- /javascript/js-day14/08async.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /javascript/js-day14/images/01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day14/images/01.jpg -------------------------------------------------------------------------------- /javascript/js-day14/images/02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day14/images/02.jpg -------------------------------------------------------------------------------- /javascript/js-day14/images/03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day14/images/03.jpg -------------------------------------------------------------------------------- /javascript/js-day14/images/04.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day14/images/04.jpg -------------------------------------------------------------------------------- /javascript/js-day14/images/05.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day14/images/05.jpg -------------------------------------------------------------------------------- /javascript/js-day14/images/06.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day14/images/06.jpg -------------------------------------------------------------------------------- /javascript/js-day14/images/07.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day14/images/07.jpg -------------------------------------------------------------------------------- /javascript/js-day14/images/08.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day14/images/08.jpg -------------------------------------------------------------------------------- /javascript/js-day14/images/09.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day14/images/09.jpg -------------------------------------------------------------------------------- /javascript/js-day14/images/10.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day14/images/10.jpg -------------------------------------------------------------------------------- /javascript/js-day14/images/11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day14/images/11.jpg -------------------------------------------------------------------------------- /javascript/js-day14/images/12.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day14/images/12.jpg -------------------------------------------------------------------------------- /javascript/js-day14/images/pan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day14/images/pan.png -------------------------------------------------------------------------------- /javascript/js-day14/images/pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day14/images/pause.png -------------------------------------------------------------------------------- /javascript/js-day14/images/play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day14/images/play.png -------------------------------------------------------------------------------- /javascript/js-day14/images/shou.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-day14/images/shou.png -------------------------------------------------------------------------------- /javascript/js-day14/lib/base.js: -------------------------------------------------------------------------------- 1 | function onReachBottom(){ 2 | var dh=document.documentElement.scrollHeight; 3 | var sh=Math.ceil(document.documentElement.scrollTop); 4 | var ah=document.documentElement.clientHeight; 5 | return sh+ah==dh?true:false 6 | } -------------------------------------------------------------------------------- /javascript/js-less17/color.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-less17/color.css -------------------------------------------------------------------------------- /javascript/js-less17/color.less: -------------------------------------------------------------------------------- 1 | #colors(){ /* json对象 */ 2 | primaryColor:#337ab7; 3 | successColor:#5cb85c; 4 | infoColor:#5bc0de; 5 | dangerColor:#d9534f; 6 | } -------------------------------------------------------------------------------- /javascript/js-less17/images/noselect.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-less17/images/noselect.png -------------------------------------------------------------------------------- /javascript/js-less17/images/select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/javascript/js-less17/images/select.png -------------------------------------------------------------------------------- /javascript/js-vm18/01vm.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 14 | 15 | 16 |
17 | 18 |
19 | 20 | -------------------------------------------------------------------------------- /javascript/sass/01test.css: -------------------------------------------------------------------------------- 1 | /* mixin */ 2 | .one { 3 | width: 100px; 4 | height: 100px; 5 | } 6 | /* 继承 */ 7 | .block, 8 | .nav { 9 | width: 200px; 10 | height: 200px; 11 | } 12 | .nav { 13 | border: 1px solid #333; 14 | } 15 | -------------------------------------------------------------------------------- /javascript/sass/01test.less: -------------------------------------------------------------------------------- 1 | /* mixin */ 2 | #wh(){ 3 | width:100px; 4 | height:100px 5 | } 6 | .one{ 7 | #wh() 8 | } 9 | /* 继承 */ 10 | .block{ 11 | width:200px; 12 | height:200px 13 | } 14 | .nav:extend(.block){ 15 | border:1px solid #333 16 | } -------------------------------------------------------------------------------- /javascript/sass/test.min.css: -------------------------------------------------------------------------------- 1 | div{background:red}.container{background:red}.container .child{font-size:12px}.container:hover{color:yellow}.one{width:100px;height:100px}.block,.nav{width:200px;height:200px}.visible{display:block}.hidden{display:block}.col-1{width:8.33333%}.col-2{width:16.66667%}.col-3{width:25%}.col-4{width:33.33333%}.col-5{width:41.66667%}.col-6{width:50%}.col-7{width:58.33333%}.col-8{width:66.66667%}.col-9{width:75%}.col-10{width:83.33333%}.col-11{width:91.66667%}.col-12{width:100%} 2 | -------------------------------------------------------------------------------- /javascript/ts-day01/index.ts: -------------------------------------------------------------------------------- 1 | var a:number=10; 2 | console.log(typeof a); -------------------------------------------------------------------------------- /javascript/ts-day01/js/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var a = 10; 3 | console.log(typeof a); 4 | -------------------------------------------------------------------------------- /node/koa-01/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /node/koa-01/app.js: -------------------------------------------------------------------------------- 1 | const koa=require("koa"); 2 | const axios=require('axios'); 3 | const app=new koa(); 4 | app.use(async ctx=>{ 5 | var url="https://music.aityp.com/top/playlist?cat=华语" 6 | var data=await axios.get(url); 7 | ctx.body=data 8 | }) 9 | app.listen(8080) -------------------------------------------------------------------------------- /node/koa-01/index.js: -------------------------------------------------------------------------------- 1 | const fs=require('fs') 2 | fs.readFile('./name.json',(err,data)=>{ 3 | if(err){ 4 | console.log(err) 5 | }else{ 6 | console.log(data) 7 | } 8 | }) -------------------------------------------------------------------------------- /node/koa-01/name.json: -------------------------------------------------------------------------------- 1 | data={name:'cheng',age:20} -------------------------------------------------------------------------------- /node/koa-01/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "koa-01", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "start": "nodemon app.js", 8 | "test": "echo \"Error: no test specified\" && exit 1" 9 | }, 10 | "keywords": [], 11 | "author": "", 12 | "license": "ISC", 13 | "dependencies": { 14 | "axios": "^0.19.0", 15 | "koa": "^2.8.1" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /node/koa-admin2/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /node/koa-admin2/public/stylesheets/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding: 50px; 3 | font: 14px "Lucida Grande", Helvetica, Arial, sans-serif; 4 | } 5 | 6 | a { 7 | color: #00B7FF; 8 | } 9 | -------------------------------------------------------------------------------- /node/koa-admin2/readme.md: -------------------------------------------------------------------------------- 1 | ### 一、项目初始化 2 | 3 | ```js 4 | npm i koa-generator -g 5 | koa2 koa-admin-cart //快速创建nodejs项目 6 | ``` 7 | 8 | ```js 9 | //装art-template 10 | yarn add art-template koa-art-template 11 | ``` 12 | 13 | ```js 14 | const render = require("koa-art-template"); 15 | const path=require("path") 16 | //2.配置 17 | render(app, { 18 | root: path.join(__dirname, 'views'), 19 | extname: '.html', //后缀也可以写成.art 20 | debug: process.env.NODE_ENV !== 'production' 21 | }); 22 | ``` 23 | 24 | -------------------------------------------------------------------------------- /node/koa-admin2/routes/index.js: -------------------------------------------------------------------------------- 1 | const router = require('koa-router')() 2 | 3 | router.get('/', async (ctx, next) => { 4 | await ctx.render('index', { 5 | title: 'koa2' 6 | }) 7 | }) 8 | module.exports = router 9 | -------------------------------------------------------------------------------- /node/koa-admin2/routes/users.js: -------------------------------------------------------------------------------- 1 | const router = require('koa-router')() 2 | 3 | router.prefix('/users') 4 | 5 | router.get('/', function (ctx, next) { 6 | ctx.body = 'this is a users response!' 7 | }) 8 | 9 | router.get('/bar', function (ctx, next) { 10 | ctx.body = 'this is a users/bar response' 11 | }) 12 | 13 | module.exports = router 14 | -------------------------------------------------------------------------------- /node/koa-admin2/views/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 |

hello world

11 |

koa2

12 | 13 | -------------------------------------------------------------------------------- /node/koa-cookie/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /node/koa-cookie/index.js: -------------------------------------------------------------------------------- 1 | console.log(hello world) -------------------------------------------------------------------------------- /node/koa-cookie/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "koa-cookie", 3 | "version": "1.0.0", 4 | "main": "index.js", 5 | "license": "MIT", 6 | "dependencies": { 7 | "koa": "^2.11.0" 8 | }, 9 | "scripts": { 10 | "start":"nodemon index.js" 11 | }, 12 | } 13 | -------------------------------------------------------------------------------- /node/koa-middle/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /node/koa-middle/index.js: -------------------------------------------------------------------------------- 1 | //中间件 匹配路由之前和路由完成之后要进行的一些操作 2 | //中间件会一个个执行,一个中间件没有执行完毕不会执行下一个 3 | //next()函数会往下执行 4 | /* koa设置中间件 */ 5 | const Koa=require('koa') 6 | const app=new Koa(); 7 | app.use(async(ctx,next)=>{ 8 | console.log(1) 9 | ctx.body="hello world" 10 | await next() 11 | }) 12 | app.use(async(ctx,next)=>{ 13 | console.log(2) 14 | }) 15 | app.listen(8080) -------------------------------------------------------------------------------- /node/koa-middle/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "koa-middle", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "start": "nodemon index.js" 8 | }, 9 | "author": "", 10 | "license": "ISC", 11 | "dependencies": { 12 | "koa": "^2.11.0" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /node/koa-mvc02/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /node/koa-mvc02/assets/css/detail.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/node/koa-mvc02/assets/css/detail.css -------------------------------------------------------------------------------- /node/koa-mvc02/assets/css/index.css: -------------------------------------------------------------------------------- 1 | h2{ 2 | color:red; 3 | } 4 | .container{ 5 | width:750px; 6 | padding:40px; 7 | margin-left: auto; 8 | margin-right: auto; 9 | border:1px solid #D3D3D3; 10 | display: flex; 11 | flex-wrap: wrap; 12 | justify-content: space-between; 13 | } 14 | .item{ 15 | width:140px; 16 | font-size: 14px; 17 | } 18 | img{ 19 | width:140px; 20 | height:140px 21 | } -------------------------------------------------------------------------------- /node/koa-mvc02/controllers/index.js: -------------------------------------------------------------------------------- 1 | const http=require("../models/http") 2 | const index=async ctx=>{ 3 | var res=await http.getIndex() 4 | var playlists=res.data.playlists 5 | await ctx.render('index',{playlists:playlists}) 6 | } 7 | const detail=async ctx=>{ 8 | var id=ctx.query.id 9 | var res=await http.getDetail(id) 10 | console.log(res.data) 11 | await ctx.render('detail') 12 | } 13 | module.exports={ 14 | index, 15 | detail 16 | } -------------------------------------------------------------------------------- /node/koa-mvc02/index.js: -------------------------------------------------------------------------------- 1 | const Koa=require("koa"); 2 | const path=require("path") 3 | const app=new Koa(); 4 | const static =require("koa-static") 5 | const render=require("koa-art-template") 6 | const router=require('./routers') 7 | render(app,{ 8 | root: path.join(__dirname, 'views'), 9 | extname: '.html', 10 | debug: process.env.NODE_ENV !== 'production' 11 | }); 12 | app.use(static(path.join(__dirname,"assets"))) 13 | app.use(router.routes()).use(router.allowedMethods()) 14 | app.listen(8080) -------------------------------------------------------------------------------- /node/koa-mvc02/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "01koa-start", 3 | "version": "1.0.0", 4 | "main": "index.js", 5 | "license": "MIT", 6 | "dependencies": { 7 | "art-template": "^4.13.2", 8 | "axios": "^0.19.0", 9 | "koa": "^2.8.2", 10 | "koa-art-template": "^1.1.1", 11 | "koa-ejs": "^4.2.0", 12 | "koa-router": "^7.4.0", 13 | "koa-static": "^5.0.0" 14 | }, 15 | "scripts": { 16 | "start": "nodemon index.js" 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /node/koa-mvc02/routers/index.js: -------------------------------------------------------------------------------- 1 | const Router=require("koa-router") 2 | const router=new Router() 3 | const controller=require('../controllers') 4 | router.get("/",controller.index) 5 | router.get("/detail",controller.detail) 6 | module.exports=router; -------------------------------------------------------------------------------- /node/koa-mvc02/views/detail.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 |

详情页面

11 | 12 | -------------------------------------------------------------------------------- /node/koa-router/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /node/koa-router/main.js: -------------------------------------------------------------------------------- 1 | const Koa=require("koa"); 2 | const app=new Koa(); 3 | const Router=require("koa-router") 4 | const requireDirectory =require('require-directory') 5 | requireDirectory(module,'./routers',{visit:whenLoadModule}) 6 | function whenLoadModule(obj){ 7 | if(obj instanceof Router){ 8 | app.use(obj.routes()) 9 | } 10 | } 11 | app.listen(8080) -------------------------------------------------------------------------------- /node/koa-router/routers/detail.js: -------------------------------------------------------------------------------- 1 | const router=require("koa-router")(); 2 | router.get('/detail',async ctx=>{ 3 | ctx.body="detail" 4 | }) 5 | module.exports=router -------------------------------------------------------------------------------- /node/koa-router/routers/index.js: -------------------------------------------------------------------------------- 1 | const router=require("koa-router")(); 2 | router.get('/',async ctx=>{ 3 | ctx.cookies.set("name","zhangsan",{ 4 | maxAge:1000*30 //cookie的有效时长 5 | }) 6 | console.log(ctx.cookies.get("name")) 7 | ctx.body="hello world" 8 | }) 9 | module.exports=router; -------------------------------------------------------------------------------- /node/koa-router/routers/list.js: -------------------------------------------------------------------------------- 1 | var a=10; 2 | module.exports=a -------------------------------------------------------------------------------- /node/koa-start01/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /node/koa-start01/assets/css/detail.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/node/koa-start01/assets/css/detail.css -------------------------------------------------------------------------------- /node/koa-start01/assets/css/index.css: -------------------------------------------------------------------------------- 1 | h2{ 2 | color:red; 3 | } 4 | .container{ 5 | width:750px; 6 | padding:40px; 7 | margin-left: auto; 8 | margin-right: auto; 9 | border:1px solid #D3D3D3; 10 | display: flex; 11 | flex-wrap: wrap; 12 | justify-content: space-between; 13 | } 14 | .item{ 15 | width:140px; 16 | font-size: 14px; 17 | } 18 | img{ 19 | width:140px; 20 | height:140px 21 | } -------------------------------------------------------------------------------- /node/koa-start01/index.js: -------------------------------------------------------------------------------- 1 | const Koa=require("koa"); 2 | const router=require('./routers') 3 | const path=require("path") 4 | const app=new Koa(); 5 | const static =require("koa-static") 6 | const render=require("koa-art-template") 7 | render(app,{ 8 | root: path.join(__dirname, 'views'), 9 | extname: '.html', 10 | debug: process.env.NODE_ENV !== 'production' 11 | }); 12 | app.use(static(path.join(__dirname,"assets"))) 13 | app.use(router.routes()).use(router.allowedMethods()) 14 | app.listen(8080) -------------------------------------------------------------------------------- /node/koa-start01/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "01koa-start", 3 | "version": "1.0.0", 4 | "main": "index.js", 5 | "license": "MIT", 6 | "dependencies": { 7 | "art-template": "^4.13.2", 8 | "axios": "^0.19.0", 9 | "koa": "^2.8.2", 10 | "koa-art-template": "^1.1.1", 11 | "koa-ejs": "^4.2.0", 12 | "koa-router": "^7.4.0", 13 | "koa-static": "^5.0.0" 14 | }, 15 | "scripts": { 16 | "start": "nodemon index.js" 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /node/koa-start01/views/detail.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 |

详情页面

11 | 12 | -------------------------------------------------------------------------------- /node/sugar-puppeteer/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /node/sugar-puppeteer/duitang.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/node/sugar-puppeteer/duitang.png -------------------------------------------------------------------------------- /node/sugar-puppeteer/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "koa": "^2.11.0", 4 | "koa-router": "^7.4.0", 5 | "koa2-cors": "^2.0.6", 6 | "nodemon": "^1.19.4", 7 | "puppeteer": "^2.0.0" 8 | }, 9 | "scripts": { 10 | "start": "nodemon index.js" 11 | }, 12 | "name": "sugar", 13 | "version": "1.0.0", 14 | "main": "index.js", 15 | "license": "MIT" 16 | } 17 | -------------------------------------------------------------------------------- /python/day01/01.py: -------------------------------------------------------------------------------- 1 | # a="hello" 2 | # print(a[1:3]) 3 | # # 字符串截取不包含最后一位 4 | # obj={ 5 | # "name":"cheng", 6 | # "age":18 7 | # } 8 | # print(obj["name"]) 9 | # def test(a=2,b=3): 10 | # print(a+b) 11 | # test(b=6) 12 | for value in range(0,11): 13 | if(value==3): 14 | continue 15 | print(value) -------------------------------------------------------------------------------- /python/serve/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "python.pythonPath": "C:\\Users\\Administrator\\.virtualenvs\\serve-xNGzOnJ_\\Scripts\\python.exe" 3 | } -------------------------------------------------------------------------------- /python/serve/Pipfile: -------------------------------------------------------------------------------- 1 | [[source]] 2 | name = "pypi" 3 | url = "http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com" 4 | verify_ssl = true 5 | 6 | [dev-packages] 7 | 8 | [packages] 9 | flask = "*" 10 | 11 | [requires] 12 | python_version = "3.7" 13 | -------------------------------------------------------------------------------- /python/serve/app.py: -------------------------------------------------------------------------------- 1 | from flask import Flask 2 | __author__="chengchao" 3 | app=Flask(__name__) 4 | @app.route('/') 5 | # 视图函数 6 | def index(): 7 | return "flask" 8 | @app.route("/hello/") 9 | def hello(): 10 | return "hello world" 11 | app.run(debug=True) -------------------------------------------------------------------------------- /react/react-demo/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /react/react-demo/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/react/react-demo/public/favicon.ico -------------------------------------------------------------------------------- /react/react-demo/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/react/react-demo/public/logo192.png -------------------------------------------------------------------------------- /react/react-demo/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/react/react-demo/public/logo512.png -------------------------------------------------------------------------------- /react/react-demo/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | -------------------------------------------------------------------------------- /react/react-demo/src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import App from './views/Home'; 4 | ReactDOM.render(, document.getElementById('root')); -------------------------------------------------------------------------------- /react/react-demo04/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /react/react-demo04/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/react/react-demo04/public/favicon.ico -------------------------------------------------------------------------------- /react/react-demo04/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/react/react-demo04/public/logo192.png -------------------------------------------------------------------------------- /react/react-demo04/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/react/react-demo04/public/logo512.png -------------------------------------------------------------------------------- /react/react-demo04/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | -------------------------------------------------------------------------------- /react/react-demo04/src/App.css: -------------------------------------------------------------------------------- 1 | .App{ 2 | color:red 3 | } -------------------------------------------------------------------------------- /react/react-demo04/src/Header.css: -------------------------------------------------------------------------------- 1 | .h-App{ 2 | color:yellow 3 | } -------------------------------------------------------------------------------- /react/react-demo04/src/Header.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import './Header.css' 3 | function Header(props){ 4 | return (
{props.msg}
) 5 | } 6 | export default Header; -------------------------------------------------------------------------------- /react/react-demo04/src/components-style/Wrapper.js: -------------------------------------------------------------------------------- 1 | 2 | import styled from 'styled-components' 3 | const Title=styled.h1` 4 | font-size:1.5em; 5 | text-align:center; 6 | color:#c0c342 7 | .one{ 8 | color:blue; 9 | } 10 | h4{ 11 | color:red 12 | } 13 | &:hover{ 14 | color:green 15 | } 16 | ` 17 | export default Title -------------------------------------------------------------------------------- /react/react-demo04/src/components/Title.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | class Title extends React.Component{ 3 | constructor(props){ 4 | super(props) 5 | } 6 | render(){ 7 | return ( 8 |

{this.props.msg}

9 | ) 10 | } 11 | handleClick=(id)=>{ 12 | console.log(id) 13 | this.props.deleteItem(id) 14 | } 15 | } 16 | export default Title -------------------------------------------------------------------------------- /react/react-demo04/src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import App from './App'; 4 | import axios from 'axios' 5 | React.Component.prototype.$http=axios 6 | ReactDOM.render(, document.getElementById('root')); 7 | 8 | // If you want your app to work offline and load faster, you can change 9 | // unregister() to register() below. Note this comes with some pitfalls. 10 | // Learn more about service workers: https://bit.ly/CRA-PWA 11 | // serviceWorker.unregister(); 12 | -------------------------------------------------------------------------------- /react/react-router/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /react/react-router/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/react/react-router/public/favicon.ico -------------------------------------------------------------------------------- /react/react-router/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/react/react-router/public/logo192.png -------------------------------------------------------------------------------- /react/react-router/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/react/react-router/public/logo512.png -------------------------------------------------------------------------------- /react/react-router/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | -------------------------------------------------------------------------------- /react/react-router/src/App.css: -------------------------------------------------------------------------------- 1 | @import '~antd/dist/antd.css'; -------------------------------------------------------------------------------- /react/react-router/src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import App from './App'; 4 | import 'antd/dist/antd.css' 5 | ReactDOM.render(, document.getElementById('root')); 6 | 7 | -------------------------------------------------------------------------------- /react/react-router/src/views/About.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | 3 | class About extends Component { 4 | render() { 5 | return ( 6 |
7 | 关于页面 8 |
9 | ); 10 | } 11 | } 12 | 13 | export default About; -------------------------------------------------------------------------------- /react/react-router/src/views/Detail.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import queryString from 'query-string' 3 | class Detail extends Component { 4 | render() { 5 | return ( 6 |
7 | 详情页 8 |
9 | ); 10 | } 11 | componentDidMount(){ 12 | console.log(this.props.match.params) 13 | } 14 | 15 | } 16 | 17 | export default Detail; -------------------------------------------------------------------------------- /react/react-router2/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /react/react-router2/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/react/react-router2/public/favicon.ico -------------------------------------------------------------------------------- /react/react-router2/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/react/react-router2/public/logo192.png -------------------------------------------------------------------------------- /react/react-router2/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/react/react-router2/public/logo512.png -------------------------------------------------------------------------------- /react/react-router2/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | -------------------------------------------------------------------------------- /react/react-router2/src/App.css: -------------------------------------------------------------------------------- 1 | @import '~antd/dist/antd.css'; -------------------------------------------------------------------------------- /react/react-router2/src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import App from './App'; 4 | import 'antd/dist/antd.css' 5 | ReactDOM.render(, document.getElementById('root')); 6 | 7 | -------------------------------------------------------------------------------- /react/react-router2/src/store/index.js: -------------------------------------------------------------------------------- 1 | import {createStore} from 'redux'; 2 | import reducer from './reducer'; 3 | const store=createStore(reducer,window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()) 4 | export default store; 5 | -------------------------------------------------------------------------------- /react/react-router2/src/views/components/Morning.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | 3 | class Morning extends Component { 4 | render() { 5 | return ( 6 |
7 | About/morning 8 |
9 | ); 10 | } 11 | } 12 | 13 | export default Morning; -------------------------------------------------------------------------------- /react/react-router2/src/views/components/Night.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | 3 | class Night extends Component { 4 | render() { 5 | return ( 6 |
7 | About/night 8 |
9 | ); 10 | } 11 | } 12 | 13 | export default Night; -------------------------------------------------------------------------------- /react/react-start01/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /react/react-start01/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/react/react-start01/public/favicon.ico -------------------------------------------------------------------------------- /react/react-start01/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/react/react-start01/public/logo192.png -------------------------------------------------------------------------------- /react/react-start01/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyuhuan1/notebook/a9235113875488006bdadabed038eac3605f4e1e/react/react-start01/public/logo512.png -------------------------------------------------------------------------------- /react/react-start01/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | -------------------------------------------------------------------------------- /react/react-start01/src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import App from './pages/App/App'; 4 | ReactDOM.render(, document.getElementById('root')); 5 | -------------------------------------------------------------------------------- /react/react-start01/src/pages/App/App.css: -------------------------------------------------------------------------------- 1 | img{ 2 | width:240px 3 | } -------------------------------------------------------------------------------- /typescript/day01/02.ts: -------------------------------------------------------------------------------- 1 | // var arr:string[]=['html','css','javascript']h 2 | // arr.forEach(item=>{ 3 | // console.log(item) 4 | // }) 5 | var list:[number,string]=[12,"html"] 6 | //object 7 | var obj:object = { 8 | name:"lisi", 9 | age:14 10 | } 11 | console.log(obj["name"]) 12 | var arr:object[]=[{name:"lisi",age:14},{name:"zhangsan",age:18}] -------------------------------------------------------------------------------- /typescript/day01/03.ts: -------------------------------------------------------------------------------- 1 | enum Status{ 2 | success=200, 3 | fail=404, 4 | serverError=500 5 | } 6 | var s:Status=Status.success; 7 | console.log(s) -------------------------------------------------------------------------------- /typescript/day01/04.ts: -------------------------------------------------------------------------------- 1 | var data:any=[1,2,3] 2 | data='hello world'; 3 | data=1235 4 | console.log(data) -------------------------------------------------------------------------------- /typescript/day01/05.ts: -------------------------------------------------------------------------------- 1 | function go():void{ 2 | console.log("hello world") 3 | } 4 | go() 5 | function test():number{ 6 | console.log("a") 7 | return 10; 8 | } -------------------------------------------------------------------------------- /typescript/day01/06.ts: -------------------------------------------------------------------------------- 1 | var a:undefined|number; 2 | console.log(a) -------------------------------------------------------------------------------- /typescript/day01/07.ts: -------------------------------------------------------------------------------- 1 | //函数的可选参数,必须在最后面 2 | var fn=function(name:string,age?:number):number{ 3 | console.log(name,age) 4 | return 10 5 | } 6 | fn("cheng") -------------------------------------------------------------------------------- /typescript/day01/08.ts: -------------------------------------------------------------------------------- 1 | //private 私有的 作用范围只在类中 2 | //public 共有的,其它类也可以访问 3 | //不写默认共有的 4 | class Person{ 5 | //类的一个属性 6 | name:string; 7 | age:number; 8 | constructor(name:string,age:number){ 9 | this.name=name; 10 | this.age=age 11 | } 12 | getName():void{ 13 | console.log(this.name) 14 | } 15 | } 16 | // var p:Person=new Person("cheng",20) 17 | // console.log(p) 18 | export default Person; -------------------------------------------------------------------------------- /typescript/day01/09.ts: -------------------------------------------------------------------------------- 1 | import Person from './08' 2 | class Student extends Person{ 3 | skill:string; 4 | constructor(name:string,age:number,skill:string){ 5 | super(name,age); 6 | this.skill=skill 7 | } 8 | } 9 | var s:Student=new Student("zhang",20,"lol") 10 | s.getName() -------------------------------------------------------------------------------- /typescript/day01/10.ts: -------------------------------------------------------------------------------- 1 | //接口 2 | interface Animal{ 3 | name:string; 4 | eat():any; 5 | run():any; 6 | } 7 | class Dog implements Animal{ 8 | name:string 9 | eat():void{ 10 | console.log("吃骨头") 11 | } 12 | run():void{ 13 | console.log("狗跑") 14 | } 15 | } -------------------------------------------------------------------------------- /typescript/day01/README.md: -------------------------------------------------------------------------------- 1 | ## 一、开发环境配置 2 | 3 | ```js 4 | npm i typescript -g 5 | npm i ts-node -g 6 | tsc --version 7 | ``` 8 | 9 | ## 二、ts语言特点 10 | 11 | 12 | 13 | ```ts 14 | 编译成js //tsc app.ts 15 | //强类型语言,声明变量要指明其类型 16 | 17 | //object 18 | var obj:object={ 19 | name:"lisi", 20 | age:14 21 | } 22 | console.log(obj["name"]) //读取obj 23 | ``` 24 | 25 | -------------------------------------------------------------------------------- /typescript/day01/app.js: -------------------------------------------------------------------------------- 1 | var str = "hello world"; 2 | console.log(str); 3 | -------------------------------------------------------------------------------- /typescript/day01/app.ts: -------------------------------------------------------------------------------- 1 | var str:string="hello world"; 2 | console.log(str) 3 | var num:number=10; 4 | var b:boolean=true; 5 | if(b){ 6 | console.log(1) 7 | }else{ 8 | console.log(0) 9 | } --------------------------------------------------------------------------------