上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 46 下一页
摘要: 问题一:页面初始加载,部分接口首次请求options是200,然后第二次post请求cancled状态 1. 检查console控制台报错,如果是接口问题,就不用操心了 2.如果是其他报错,那么就不用考虑其他问题了,是因为其他报错导致的后续接口请求取消了 举例:代码冲突导致的i18n文件格式不正确, 阅读全文
posted @ 2021-06-09 23:00 糖~豆豆 阅读(6164) 评论(0) 推荐(0)
摘要: 先上效果图 HTML代码 <div echarts #myEchart [options]="option"></div> ts代码 import { Component, OnInit, ViewChild, ElementRef } from '@angular/core'; import { 阅读全文
posted @ 2021-06-09 21:12 糖~豆豆 阅读(362) 评论(0) 推荐(0)
摘要: 先看一下目录结构 --aa-item modal-compment modal-compment.component.html modal-compment.component.less modal-compment.component.ts aa-compment aa-compment.comp 阅读全文
posted @ 2021-06-09 00:07 糖~豆豆 阅读(388) 评论(0) 推荐(0)
摘要: 1.下载源码放到本地搞~~ 适合内网开发的苦孩子们~~~ 先进入https://github.com/sass/node-sass/releases下载自己需要的包 可以点击tags然后找到自己需要的,然后进行下载 举例:下载下面这个 https://github.com/sass/node-sas 阅读全文
posted @ 2021-06-07 23:07 糖~豆豆 阅读(640) 评论(0) 推荐(0)
摘要: 单向绑定 事件绑定: <input (keyup)="inputChange($event)" /> 属性绑定: <input [value]="inputValue" /> 插值绑定 {{myValue}} 双向绑定 <input [(ngModel)]="myInputValue" /> 下面来 阅读全文
posted @ 2021-06-07 23:06 糖~豆豆 阅读(532) 评论(0) 推荐(0)
摘要: 实现只需要两步 ts import { ViewEncapsulation } from '@angular/core';// 关键代码 @Component({ selector: 'app-test', templateUrl: './test.component.html', styleUrl 阅读全文
posted @ 2021-06-06 22:26 糖~豆豆 阅读(407) 评论(0) 推荐(0)
摘要: 首先来说前端上传表格,然后利用纯前端技术进行解析表格的办法 详细步骤 请点击这里 接下来来说上传发送给后端的代码实现 html <input ref="myInput" type="file" class="my_input" :multiple="myMultiple" style="displa 阅读全文
posted @ 2021-06-03 22:56 糖~豆豆 阅读(1598) 评论(0) 推荐(0)
摘要: NG-ZORRO + angular-cli11 实现表格横纵向单元格合并,按需设置背景色,并解决动态合并单元格动态colspan情况下,nzLeft固定列失效问题 HTML代码 <!-- 1.发现只要colspan只要是动态的,nzleft就不正常了,无法起作用 2.合并单元格且固定列位置方案1: 阅读全文
posted @ 2021-06-03 22:55 糖~豆豆 阅读(1226) 评论(0) 推荐(0)
摘要: 关于引入Echarts的方法在此 直通车在此 接下来就是添加点击事件,获取X轴的数据 <div echarts #charts [options]="chartOption" class="charts"></div> import { NgxEchartsService } from 'ngx-e 阅读全文
posted @ 2021-06-03 22:53 糖~豆豆 阅读(453) 评论(0) 推荐(0)
摘要: 先上图对比方案1-2-3不同点,本文是方案3 方案1(旋转场景情况下发光体不应该遮住另一个,但是遮住了) 方案2(层次正常,发光正常) 方案3(层次正常,发光正常,但是转动场景时候部分辉光会被遮挡,但是还算OK) 上代码,与方案1代码只有两行是不一样的哦 <!DOCTYPE html PUBLIC 阅读全文
posted @ 2021-05-27 23:40 糖~豆豆 阅读(1255) 评论(0) 推荐(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 46 下一页
Live2D