摘要: import {Component} from '@angular/core'; import {FormGroup} from '@angular/forms'; import {FormlyFieldConfig} from '@ngx-formly/core'; @Component({ se 阅读全文
posted @ 2020-09-16 15:01 杨煊煊 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 参考网址:https://formly.dev/guide/getting-started expressionProperties 属性的使用方式: import {Component} from '@angular/core'; import {FormGroup} from '@angular 阅读全文
posted @ 2020-09-16 14:58 杨煊煊 阅读(303) 评论(0) 推荐(0) 编辑
摘要: var formArr = [ {name: "Name", value: "111"}, {name: "Price", value: "2"}, {name: "ProducingArea", value: "3"}, {name: "ShelfLife", value: "44"}, {nam 阅读全文
posted @ 2020-07-01 08:59 杨煊煊 阅读(5218) 评论(0) 推荐(0) 编辑
摘要: [1, 2, 3].includes(2); // true [1, 2, 3].includes(4); // false [1, 2, NaN].includes(NaN); // true没有该方法之前,我们通常使用数组的indexOf方法,检查是否包含某个值。 if (arr.indexOf 阅读全文
posted @ 2020-06-10 11:10 杨煊煊 阅读(1335) 评论(0) 推荐(1) 编辑
摘要: 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Title</title> 6 7 </head> 8 <body> 9 <div id="tab"> 10 <input type="te 阅读全文
posted @ 2020-01-14 09:11 杨煊煊 阅读(376) 评论(0) 推荐(0) 编辑
摘要: html代码 vue .js部分 阅读全文
posted @ 2019-07-12 18:03 杨煊煊 阅读(5939) 评论(0) 推荐(0) 编辑
摘要: 不了解的人,像我刚开始就乱用这个箭头函数的{},想起来就加上,想不起来就不加,也没发现什么大问题,但是最近学了angular,这个加上了{},就开始不显示任何数据,也是从网上找了这个加不加的区别 实例如下:添加大括号时 一定要有return 不添加大括号 阅读全文
posted @ 2019-07-12 10:00 杨煊煊 阅读(2212) 评论(0) 推荐(2) 编辑
摘要: 图片的两种书写方式 只要每一种的书写风格一致就可以 HTML界面 阅读全文
posted @ 2019-07-12 09:34 杨煊煊 阅读(921) 评论(0) 推荐(0) 编辑
摘要: <div class="z-shebei-box1 x-mysh-p" v-for="item in deviceList" :class="{'bgActive':item.remind == 'false'}" style="width: 100%;"><div> css样式 .bgActive 阅读全文
posted @ 2019-07-02 10:13 杨煊煊 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 一、路由传值 步骤1 路由传递参数 注意 一定是要传递 索引值 let key = index 这种情况是在浏览器中可以显示对应的参数 这种的是问号 localhost:8080/news?id=2&name=xiaoming 步骤2 接收传过来的参数 注意:接收时通过 queryParams 进行 阅读全文
posted @ 2019-06-28 18:27 杨煊煊 阅读(23943) 评论(1) 推荐(4) 编辑