上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 25 下一页
摘要: <table border="1" cellpadding="0" cellspacing="0" width="200"> <caption>财务报表表格标题</caption> <thead> <tr style="background-color: gray;"> <th>Month</th> 阅读全文
posted @ 2020-10-04 06:53 wing1377 阅读(189) 评论(0) 推荐(0) 编辑
摘要: app.component.ts https://github.com/wing1377/TodosMVC/blob/master/todomvc-app-angular/src/app/app.component.ts app.component.html https://github.com/w 阅读全文
posted @ 2020-10-02 15:08 wing1377 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 起步 准备 下载静态模板 git clone https://github.com/tastejs/todomvc-app-template.git --depth 1 在静态文件根目录下 npm install 初始化项目 ng new todomvc-angular 在进行基础的选择之后,ctr 阅读全文
posted @ 2020-10-02 12:14 wing1377 阅读(147) 评论(0) 推荐(0) 编辑
摘要: public todos: { id: number, title: string, done: boolean }[] = JSON.parse(window.localStorage.getItem('todos') || '[]') ngDoCheck(){ window.localStora 阅读全文
posted @ 2020-10-02 12:03 wing1377 阅读(385) 评论(0) 推荐(0) 编辑
摘要: const hash = window.location.hash.substr(1) // 此处的解释为:获取哈希值,然后去掉‘#’ substr()字符串方法: stringObject.substr(start,length) 从索引值start开始截取,截取长度为length 若length 阅读全文
posted @ 2020-10-01 16:03 wing1377 阅读(451) 评论(0) 推荐(0) 编辑
摘要: <li *ngFor="let todo of todos; let i = index;" [ngClass]="{completed: todo.done}" > <button class="destroy" (click)='removeTodo(i)' ></button> </li> r 阅读全文
posted @ 2020-09-30 19:21 wing1377 阅读(1993) 评论(0) 推荐(0) 编辑
摘要: 1、TypeScript 基础 本文概述 TypeScript 是什么 https://www.tslang.cn/ www.typescriptlang.org 变量声明 var let const 基本数据类型 布尔值 boolean 数字 number 字符串 string 数组 number 阅读全文
posted @ 2020-09-26 17:16 wing1377 阅读(183) 评论(0) 推荐(0) 编辑
摘要: Vue脚手架 Vue脚手架的基本用法 Vue脚手架概述 Vue脚手架用于快速生成Vue项目基础架构,其官网是:https://cli.vuejs.org/zh/ 使用步骤 安装3.x版本的Vue脚手架 npm install -g @vue/cli Vue脚手架基本用法 基于交互式命令行的方式,创建 阅读全文
posted @ 2020-09-25 11:17 wing1377 阅读(226) 评论(0) 推荐(0) 编辑
摘要: Vue单文件组件 传统组件的问题和解决方案 传统组件的问题 全局定义的组件必须保证组件的名称不重复 字符串模板缺乏语法高亮,在HTML有多行的时候,需要用到丑陋的\ 不支持CSS意味着当HTML和Javascript组件化时,CSS明显被遗漏 没有构建步骤限制,只能使用HTML和ES5 Javasc 阅读全文
posted @ 2020-09-25 11:16 wing1377 阅读(155) 评论(0) 推荐(0) 编辑
摘要: webpack概述 当前web开发面临的困境 文件依赖关系错综复杂 静态资源请求效率低 模块化支持不友好 浏览器对高级Javascript特性兼容程度较低 webpack概述 webpack是一个流行的前端项目构建工具(打包工具),可以解决当前web开发中所面临的困境 webpack提供了友好的模块 阅读全文
posted @ 2020-09-25 11:15 wing1377 阅读(105) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 25 下一页