<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[h_My_first_CSDN的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/h_My_first_CSDN</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; h_My_first_CSDN]]></copyright><item><title><![CDATA[postman 请求 token 并设置全局变量]]></title><link>https://blog.csdn.net/h_My_first_CSDN/article/details/122088086</link><guid>https://blog.csdn.net/h_My_first_CSDN/article/details/122088086</guid><author>h_My_first_CSDN</author><pubDate>Wed, 22 Dec 2021 16:11:33 +0800</pubDate><description><![CDATA[获取 token


创建环境变量, 添加 token




创建获取 token 的 request, 并在 Tests 中设置 token 变量的值


var token = JSON.parse(responseBody).result.token;
postman.setEnvironmentVariable("token", token);

3. 如果不确定 response 结构, 可以先在 tests 中将 response 打印出来:
console.log(JSON.parse(re]]></description><category></category></item><item><title><![CDATA[moment 使用记录]]></title><link>https://blog.csdn.net/h_My_first_CSDN/article/details/117823073</link><guid>https://blog.csdn.net/h_My_first_CSDN/article/details/117823073</guid><author>h_My_first_CSDN</author><pubDate>Wed, 16 Jun 2021 14:47:39 +0800</pubDate><description><![CDATA[获取时间区间
getDateRange = (type, before = 0) =&gt; {
    return {
      start: before ? moment().subtract(before, type).startOf(type).format() : moment().startOf(type).format(),
      end: before ? moment().subtract(1, type).endOf(type).format() : moment().end]]></description><category></category></item><item><title><![CDATA[微信小程序文字跑马灯组件]]></title><link>https://blog.csdn.net/h_My_first_CSDN/article/details/117852196</link><guid>https://blog.csdn.net/h_My_first_CSDN/article/details/117852196</guid><author>h_My_first_CSDN</author><pubDate>Sat, 12 Jun 2021 17:46:29 +0800</pubDate><description><![CDATA[wxml
&lt;scroll-view class="marquee-container"&gt;
  &lt;view class="scroll-txt"&gt;
    &lt;view class="marquee-box"&gt;
      &lt;view class="marquee-text" style="transform: translateX(-{{ marqueeDistance }}px)"&gt;
        &lt;text&gt;{{ marqueeText }}&]]></description><category></category></item><item><title><![CDATA[微信小程序 - 自定义 picker 组件解决选项高度问题(动画效果)]]></title><link>https://blog.csdn.net/h_My_first_CSDN/article/details/117028643</link><guid>https://blog.csdn.net/h_My_first_CSDN/article/details/117028643</guid><author>h_My_first_CSDN</author><pubDate>Wed, 19 May 2021 14:41:08 +0800</pubDate><description><![CDATA[自定义 picker 组件
wxml
&lt;view class="picker-mask" wx:if="{{isShow}}" bindtap="onTapMask"&gt;
  &lt;view class="customer-wrap-picker-container " animation="{{animation}}"&gt;
    &lt;view class="header"&gt;
      &lt;view class="header-btn btn__left" catchtap]]></description><category></category></item><item><title><![CDATA[小程序 - 带输入搜索的下拉筛选框 - 前端搜索]]></title><link>https://blog.csdn.net/h_My_first_CSDN/article/details/116932094</link><guid>https://blog.csdn.net/h_My_first_CSDN/article/details/116932094</guid><author>h_My_first_CSDN</author><pubDate>Mon, 17 May 2021 14:47:02 +0800</pubDate><description><![CDATA[效果

页面
&lt;view&gt;
	&lt;view&gt;名称&lt;/view&gt;
	&lt;view&gt;
	  &lt;input
	    placeholder="请选择"
	    value="{{ selectedName }}"
	    bindinput="bindNameInput"
	    bindfocus="bindNameFocus"
	  /&gt;
	&lt;/view&gt;
	&lt;image src="./images/more.png"&gt;&]]></description><category></category></item><item><title><![CDATA[微信小程序 - 遇到的坑]]></title><link>https://blog.csdn.net/h_My_first_CSDN/article/details/116234466</link><guid>https://blog.csdn.net/h_My_first_CSDN/article/details/116234466</guid><author>h_My_first_CSDN</author><pubDate>Wed, 28 Apr 2021 15:20:14 +0800</pubDate><description><![CDATA[日期格式化 IOS 和 安卓的不兼容
下面这种写法在安卓和开发者工具中都可以正常工作, 但是在 IOS 中显示 NAN
const dateTime = new Date().getTime()
const dateStr = `${moment(dateTime).format('YYYY-MM-DD')} 00:00:00`;
console.log(new Date(dateStr).getTime());

原因是 IOS 不支持 2020-01-01 这种格式, 只支持2020/01/01 这种格]]></description><category></category></item><item><title><![CDATA[Linux 前端从零搭建项目 - Vue 篇 - 二 引入 element-ui 做登录页面]]></title><link>https://blog.csdn.net/h_My_first_CSDN/article/details/114978248</link><guid>https://blog.csdn.net/h_My_first_CSDN/article/details/114978248</guid><author>h_My_first_CSDN</author><pubDate>Tue, 27 Apr 2021 14:56:06 +0800</pubDate><description><![CDATA[安装依赖

element-ui
npm i element-ui -S

配置

main.js 中添加如下代码

import ElementUI from 'element-ui'
Vue.use(ElementUI)

页面编写

src/components/Login.vue

&lt;template&gt;
  &lt;div&gt;
    &lt;el-form :model="formData" ref="formData" :rules="rules"&gt;
      &lt;e]]></description><category></category></item><item><title><![CDATA[Linux 前端从零搭建项目 - Vue 篇 - 一 初始化一个项目]]></title><link>https://blog.csdn.net/h_My_first_CSDN/article/details/114977306</link><guid>https://blog.csdn.net/h_My_first_CSDN/article/details/114977306</guid><author>h_My_first_CSDN</author><pubDate>Tue, 27 Apr 2021 14:55:31 +0800</pubDate><description><![CDATA[安装基本依赖

npm
vue-cli
设置淘宝源

npm config set registry https://registry.npm.taobao.org

创建项目

选择项目创建的路径, 例如我的文件夹是 /home/yy/Documents/mine/
到目标文件夹下执行 vue init webpack demo, demo 为项目名称
创建过程中根据需要选择依赖
创建完成后在 demo 文件夹(cd demo)下安装依赖 npm install
启动 npm run dev, 浏览器打开]]></description><category></category></item><item><title><![CDATA[Angular ngModelChange 和 ngModel 获取改变前的值]]></title><link>https://blog.csdn.net/h_My_first_CSDN/article/details/113613651</link><guid>https://blog.csdn.net/h_My_first_CSDN/article/details/113613651</guid><author>h_My_first_CSDN</author><pubDate>Tue, 27 Apr 2021 14:53:53 +0800</pubDate><description><![CDATA[前言
最近在开发过程中遇到一个坑, 无法判断绑定的 model 是否真的发生了改变, 后来发现是在页面中将 ngModelChange 和 ngModel  的顺序写反了
错误的
&lt;nz-select
  [(ngModel)]="testModel"
  (ngModelChange)="handleModelChange($event)"
&gt;
  &lt;nz-option
    *ngFor="let option of options"
    [nzValue]="option"
 ]]></description><category></category></item><item><title><![CDATA[微信小程序 - 评价点星星]]></title><link>https://blog.csdn.net/h_My_first_CSDN/article/details/116200967</link><guid>https://blog.csdn.net/h_My_first_CSDN/article/details/116200967</guid><author>h_My_first_CSDN</author><pubDate>Tue, 27 Apr 2021 14:51:30 +0800</pubDate><description><![CDATA[组件页面
&lt;view class="evaluate-comment-container"&gt;
  &lt;view class="title"&gt;{{ title || '请评价' }}&lt;/view&gt;
  &lt;view class="evaluates"&gt;
    &lt;view
      class="evaluate-item"
      wx:for="{{ evaluateItems }}"
      wx:key=""
      wx:for-ind]]></description><category></category></item><item><title><![CDATA[微信小程序 - 签名]]></title><link>https://blog.csdn.net/h_My_first_CSDN/article/details/116199734</link><guid>https://blog.csdn.net/h_My_first_CSDN/article/details/116199734</guid><author>h_My_first_CSDN</author><pubDate>Tue, 27 Apr 2021 14:19:07 +0800</pubDate><description><![CDATA[签名并获取签名图片上传至服务器
签名
wxml:
  &lt;button class="sign-btn" bind:tap="confirmSign"&gt;
    确认
  &lt;/button&gt;
  &lt;button class="sign-btn" bind:tap="reSign"&gt;
    重签
  &lt;/button&gt;
  &lt;canvas
    wx:if="{{ !signed }}"
    canvas-id="signId"
    id="si]]></description><category></category></item><item><title><![CDATA[Linux 解决 hosts 文件无法修改: ‘readonly‘ option is set (add ! to override)]]></title><link>https://blog.csdn.net/h_My_first_CSDN/article/details/114880336</link><guid>https://blog.csdn.net/h_My_first_CSDN/article/details/114880336</guid><author>h_My_first_CSDN</author><pubDate>Tue, 16 Mar 2021 14:27:50 +0800</pubDate><description><![CDATA[执行 vi /etc/hosts
修改文件内容
按下 esc键, 然后输入 :wq
会出现如下错误 E45: 'readonly' option is set (add ! to override)
这时先强制退出, 输入 :q!
然后输入 sudo !!
输入密码后, 就可以编辑文件了
编辑完文件后按下 esc键, 然后输入 :wq!
验证文件已被编辑: cat /etc/hosts


...]]></description><category></category></item><item><title><![CDATA[echarts - 柱状图 - 多柱多色 - 斜体标签 -点击跳转到其他页面(每个柱子加链接)-tooltips函数]]></title><link>https://blog.csdn.net/h_My_first_CSDN/article/details/110196401</link><guid>https://blog.csdn.net/h_My_first_CSDN/article/details/110196401</guid><author>h_My_first_CSDN</author><pubDate>Thu, 26 Nov 2020 16:56:13 +0800</pubDate><description><![CDATA[效果

设置
option = {
	xAxis: {
		type: "category",
		axisLine: {
			show: false,
			lineStyle: {
				color: "#9BA1B5"
			}
		},
		axisTick: {
			show: false
		},
	axisLabel: {
      rotate: -45
    },
		data: ["周一", "周二", "周三", "周四"]
	},
	yAxis: {
		type: "va]]></description><category></category></item><item><title><![CDATA[echarts - 非闭环饼图 - 补齐色-左下角起始-直角]]></title><link>https://blog.csdn.net/h_My_first_CSDN/article/details/109534785</link><guid>https://blog.csdn.net/h_My_first_CSDN/article/details/109534785</guid><author>h_My_first_CSDN</author><pubDate>Fri, 13 Nov 2020 18:37:45 +0800</pubDate><description><![CDATA[效果

设置
option = {
    angleAxis: {
        splitLine: {
            show: false
        },
        axisLine: {
            show: false
        },
        axisLabel: {
            show: false
        },
        axisTick: {
            show: false
        },]]></description><category></category></item><item><title><![CDATA[echarts - 柱状图 -一柱多色]]></title><link>https://blog.csdn.net/h_My_first_CSDN/article/details/109535042</link><guid>https://blog.csdn.net/h_My_first_CSDN/article/details/109535042</guid><author>h_My_first_CSDN</author><pubDate>Fri, 13 Nov 2020 18:37:22 +0800</pubDate><description><![CDATA[效果

设置
option = {
    xAxis: {
        type: 'category',
        axisLine: {
            show: false,
            lineStyle: {
                color: '#9BA1B5',
            }
        },
        axisTick: {
            show: false
        },
        data: []]></description><category></category></item><item><title><![CDATA[echarts - 折线图]]></title><link>https://blog.csdn.net/h_My_first_CSDN/article/details/109535240</link><guid>https://blog.csdn.net/h_My_first_CSDN/article/details/109535240</guid><author>h_My_first_CSDN</author><pubDate>Fri, 13 Nov 2020 18:36:56 +0800</pubDate><description><![CDATA[效果

设置
option = {
    xAxis: {
        type: 'category',
        boundaryGap: false,
        axisLine: {
            show: false,
            lineStyle: {
                color: '#82A635',
            }
        },
        axisTick: {
            show: fals]]></description><category></category></item><item><title><![CDATA[Angular 根据条件动态添加验证]]></title><link>https://blog.csdn.net/h_My_first_CSDN/article/details/109680104</link><guid>https://blog.csdn.net/h_My_first_CSDN/article/details/109680104</guid><author>h_My_first_CSDN</author><pubDate>Fri, 13 Nov 2020 18:36:28 +0800</pubDate><description><![CDATA[html

&lt;label
    nz-checkbox
    [(ngModel)]="test"
    (ngModelChange)="handleValueChange($event)"&gt;
    测试选中后添加验证
&lt;/label&gt;
&lt;form nz-form [formGroup]="validateForm"&gt;
  &lt;nz-form-item *ngIf="item.value === objectiveProcessTypeEnum.GLOBA.]]></description><category></category></item><item><title><![CDATA[echarts - 闭环饼图 - 无补齐色-默认起始-圆角]]></title><link>https://blog.csdn.net/h_My_first_CSDN/article/details/109535440</link><guid>https://blog.csdn.net/h_My_first_CSDN/article/details/109535440</guid><author>h_My_first_CSDN</author><pubDate>Fri, 13 Nov 2020 18:35:46 +0800</pubDate><description><![CDATA[效果

设置
option = {
    tooltip: {
        show: false,
        formatter: 'The report is in generating...'
    },
    dataset: {
        source: [
            ['cold', 1, 0, 0, 0],
            ['hot', 0, 5, 0, 0],
            ['warm', 0, 0, 7, 0],
         ]]></description><category></category></item><item><title><![CDATA[Angular number pie(管道)去掉千位符(逗号)]]></title><link>https://blog.csdn.net/h_My_first_CSDN/article/details/109493235</link><guid>https://blog.csdn.net/h_My_first_CSDN/article/details/109493235</guid><author>h_My_first_CSDN</author><pubDate>Wed, 04 Nov 2020 17:14:22 +0800</pubDate><description><![CDATA[前言

number 管道用法(保留小数点后两位)

&lt;div&gt; {{ testModel | number: '1.2-2' }} &lt;/div&gt;`


使用 Angular number 管道时，会为千位自动加上分隔符，如下
122,441,165.31
去掉分隔符的方法

定义一个清除逗号的管道



import {Pipe, PipeTransform} from "@angular/core";

@Pipe({
  name: "replaceComma"
})
expo]]></description><category></category></item><item><title><![CDATA[Linux 系统下解压 rar 文件]]></title><link>https://blog.csdn.net/h_My_first_CSDN/article/details/109470239</link><guid>https://blog.csdn.net/h_My_first_CSDN/article/details/109470239</guid><author>h_My_first_CSDN</author><pubDate>Tue, 03 Nov 2020 15:33:02 +0800</pubDate><description><![CDATA[官网下载安装包
WinRAR archiver

根据操作系统选择安装包：


解压安装包
tar -zvxf rarlinux-x64-6.0.b1.tar.gz
安装
sudo make
解压 rar

解压到当前目录
rar x ***.rar
解压到指定目录
rar x ***.rar {{path}}


]]></description><category></category></item></channel></rss>