<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[ZXT149074136的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/ZXT149074136</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; ZXT149074136]]></copyright><item><title><![CDATA[Solidity Compiler报错【ParserError: Function, variable, struct or modifier declaration expected.】]]></title><link>https://blog.youkuaiyun.com/ZXT149074136/article/details/133041306</link><guid>https://blog.youkuaiyun.com/ZXT149074136/article/details/133041306</guid><author>ZXT149074136</author><pubDate>Tue, 19 Sep 2023 19:24:59 +0800</pubDate><description><![CDATA[Solidity Compiler报错【ParserError: Function, variable, struct or modifier declaration expected.】]]></description><category></category></item><item><title><![CDATA[Go-leveldb循环读取数据重复问题]]></title><link>https://blog.youkuaiyun.com/ZXT149074136/article/details/132993947</link><guid>https://blog.youkuaiyun.com/ZXT149074136/article/details/132993947</guid><author>ZXT149074136</author><pubDate>Mon, 18 Sep 2023 19:50:14 +0800</pubDate><description><![CDATA[Go-leveldb利用NewIterator循环读取数据时放入切片出现重复问题]]></description><category></category></item><item><title><![CDATA[使用net/http/pprof时，发现6000端口是Chrome限制的非安全端口，报错ERR_UNSAFE_PORT]]></title><link>https://blog.youkuaiyun.com/ZXT149074136/article/details/126698044</link><guid>https://blog.youkuaiyun.com/ZXT149074136/article/details/126698044</guid><author>ZXT149074136</author><pubDate>Mon, 05 Sep 2022 11:10:00 +0800</pubDate><description><![CDATA[使用net/http/pprof时，发现6000端口是Chrome限制的非安全端口，浏览器报错ERR_UNSAFE_PORT]]></description><category></category></item><item><title><![CDATA[solidity---判断mapping的key是否存在]]></title><link>https://blog.youkuaiyun.com/ZXT149074136/article/details/126382035</link><guid>https://blog.youkuaiyun.com/ZXT149074136/article/details/126382035</guid><author>ZXT149074136</author><pubDate>Wed, 17 Aug 2022 11:18:18 +0800</pubDate><description><![CDATA[solidity的mapping类型中，当value为string时，如何判断mapping的key是否存在]]></description><category></category></item><item><title><![CDATA[fabric2.2--Error: endorsement failure during invoke. xxx could not launch chaincode basic_1]]></title><link>https://blog.youkuaiyun.com/ZXT149074136/article/details/124952405</link><guid>https://blog.youkuaiyun.com/ZXT149074136/article/details/124952405</guid><author>ZXT149074136</author><pubDate>Tue, 24 May 2022 18:57:05 +0800</pubDate><description><![CDATA[问题触发

在执行以下命令时，出现：Error: endorsement failure during invoke. 嘻嘻嘻 could not launch chaincode basic_1 嘻嘻嘻 chaincode registration failed: container exited with 1"


peer chaincode invoke -o orderer.example.com:7050 --ordererTLSHostnameOverride orderer.example.]]></description><category></category></item><item><title><![CDATA[fabric2.2--Error：failed to create deliver client for orderer]]></title><link>https://blog.youkuaiyun.com/ZXT149074136/article/details/124823870</link><guid>https://blog.youkuaiyun.com/ZXT149074136/article/details/124823870</guid><author>ZXT149074136</author><pubDate>Tue, 17 May 2022 16:22:05 +0800</pubDate><description><![CDATA[fabric2.2--Error: failed to create deliver client for orderer: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded]]></description><category></category></item><item><title><![CDATA[go------struct结构数据打印输出json格式]]></title><link>https://blog.youkuaiyun.com/ZXT149074136/article/details/122179635</link><guid>https://blog.youkuaiyun.com/ZXT149074136/article/details/122179635</guid><author>ZXT149074136</author><pubDate>Mon, 27 Dec 2021 20:27:29 +0800</pubDate><description><![CDATA[1、方法


func (args *Args) String() string {
	b, err := json.Marshal(*args)
	if err != nil {
		return fmt.Sprintf("%+v", *args)
	}
	var out bytes.Buffer
	err = json.Indent(&amp;out, b, "", "    ")
	if err != nil {
		return fmt.Sprintf("%+v", *args)
	}
	retur]]></description><category></category></item><item><title><![CDATA[go------struct转json时忽略空字段]]></title><link>https://blog.youkuaiyun.com/ZXT149074136/article/details/122172024</link><guid>https://blog.youkuaiyun.com/ZXT149074136/article/details/122172024</guid><author>ZXT149074136</author><pubDate>Mon, 27 Dec 2021 14:50:46 +0800</pubDate><description><![CDATA[利用omitempty


type SendTBArgs struct {`
	Amount      *big.Int `json:"amount"`
	Sign        string   `json:"sign"`
	NodeID      string   `json:"nodeId,omitempty"`
}


]]></description><category></category></item><item><title><![CDATA[go语言包系列之structs：struct转map[string]interface{}]]></title><link>https://blog.youkuaiyun.com/ZXT149074136/article/details/122108336</link><guid>https://blog.youkuaiyun.com/ZXT149074136/article/details/122108336</guid><author>ZXT149074136</author><pubDate>Thu, 23 Dec 2021 15:25:22 +0800</pubDate><description><![CDATA[一、github通道

GitHub - fatih/structs: Utilities for Go structs

二、简单使用

1、自定义struct


type PA struct{
	Owner string `json:"owner"`
	Linker string `json:"linker"`
	Amount *big.Int `json:"amount"`
}

2、赋值


pa := PA{
		"zltc_oXVuaXcYWcBryMzfM4yhRZgXQHK5HASuT",]]></description><category></category></item><item><title><![CDATA[build项目时出现报错--本地开发的包导入： missing go.sum entry for module providing package]]></title><link>https://blog.youkuaiyun.com/ZXT149074136/article/details/121999432</link><guid>https://blog.youkuaiyun.com/ZXT149074136/article/details/121999432</guid><author>ZXT149074136</author><pubDate>Fri, 17 Dec 2021 16:38:52 +0800</pubDate><description><![CDATA[解决方法：

1、删除安装的go下的src中的本地项目文件或者是go.mod；

2、删除项目下的go.mod

3、Terminal下，执行go mod init 项目modules名

4、出现go.mod后，再执行go mod tidy，等待依赖下载完成

5、build 项目
...]]></description><category></category></item><item><title><![CDATA[windows系统下go库: 隐藏终端密码为星号* ——github.com/howeyc/gopass]]></title><link>https://blog.youkuaiyun.com/ZXT149074136/article/details/120203121</link><guid>https://blog.youkuaiyun.com/ZXT149074136/article/details/120203121</guid><author>ZXT149074136</author><pubDate>Mon, 11 Oct 2021 17:22:06 +0800</pubDate><description><![CDATA[不支持bash

支持powershell 、cmd
]]></description><category></category></item><item><title><![CDATA[Build constraints exclude all the Go files in ‘E:/go/src/xx/xxx‘]]></title><link>https://blog.youkuaiyun.com/ZXT149074136/article/details/118995430</link><guid>https://blog.youkuaiyun.com/ZXT149074136/article/details/118995430</guid><author>ZXT149074136</author><pubDate>Thu, 22 Jul 2021 11:35:17 +0800</pubDate><description><![CDATA[原因：E:/go/src/xx/xx下缺少了文件

解决办法：将自己工程中的xx/xx目录下的文件拷贝到E:/go/src/xx/xx下


]]></description><category></category></item><item><title><![CDATA[goland执行MySQL语句时出错   ERROR 1064 (42000)  You have an error in your SQL syntax]]></title><link>https://blog.youkuaiyun.com/ZXT149074136/article/details/106598628</link><guid>https://blog.youkuaiyun.com/ZXT149074136/article/details/106598628</guid><author>ZXT149074136</author><pubDate>Sun, 07 Jun 2020 10:43:32 +0800</pubDate><description><![CDATA[这种情况说明是MySQL语句的语法出现问题

仔细检查MySQL语句：

（1）是否是因为表名或表字段等命名用了MySQL的关键字【我就是用了index，他是MySQL的关键字】

（2）是否MySQL语句中有多的字符，比如多少了括号等

（3）是否有中文字符等

（4）创建表时，尤其要注意：字段命名需要用反引号，而不是引号；但注释是引号

                    
...]]></description><category></category></item><item><title><![CDATA[Vue通过ID修改URL复用同一个页面/组件,不重新加载的问题以及版本Vue版本升级导致的Uncaught (in promise)问题]]></title><link>https://blog.youkuaiyun.com/ZXT149074136/article/details/106181815</link><guid>https://blog.youkuaiyun.com/ZXT149074136/article/details/106181815</guid><author>ZXT149074136</author><pubDate>Sun, 17 May 2020 22:18:28 +0800</pubDate><description><![CDATA[在项目中经常会用到同一个页面，结构是相同的，只是

vue-router中通过添加参数的方式来区分状态，参数可以在页面跳转时带上params，或者query，但是即使我们修改了参数，URL也显示已经改变，但页面并不会刷新，因为路由是相同的，vue就会认为你是同一个页面，从而复用已加载的页面，而不会重新加载，可以通过watch监听事件来监听路由的变化：


  watch: {
    $route(to, from) {
      if (to.name === "account") {
        ]]></description><category></category></item><item><title><![CDATA[npm ERR! Failed at the chromedriver@2.41.0 install script.]]></title><link>https://blog.youkuaiyun.com/ZXT149074136/article/details/105404330</link><guid>https://blog.youkuaiyun.com/ZXT149074136/article/details/105404330</guid><author>ZXT149074136</author><pubDate>Thu, 09 Apr 2020 10:16:29 +0800</pubDate><description><![CDATA[npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! chromedriver@2.41.0 install: `node install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the chromedriver@2.41.0 install script.
npm ERR! ...]]></description><category></category></item><item><title><![CDATA[设置footer位置：让页面footer在正文内容不够是置于屏幕底部，当正文内容超过屏幕高度时置于正文底部]]></title><link>https://blog.youkuaiyun.com/ZXT149074136/article/details/104815459</link><guid>https://blog.youkuaiyun.com/ZXT149074136/article/details/104815459</guid><author>ZXT149074136</author><pubDate>Thu, 12 Mar 2020 12:09:26 +0800</pubDate><description><![CDATA[让页面footer在正文内容不够是置于屏幕底部，当正文内容超过屏幕高度时置于正文底部


//html布局
&lt;template&gt;
  &lt;div class="page-container"&gt;
      &lt;header-nav&gt;&lt;/header-nav&gt;
        &lt;router-view class="main-layout"&gt;&...]]></description><category></category></item><item><title><![CDATA[注意： yyyy-MM-dd 与 YYYY-MM-dd]]></title><link>https://blog.youkuaiyun.com/ZXT149074136/article/details/103816399</link><guid>https://blog.youkuaiyun.com/ZXT149074136/article/details/103816399</guid><author>ZXT149074136</author><pubDate>Fri, 03 Jan 2020 10:42:46 +0800</pubDate><description><![CDATA[yyyy-MM-dd 与 YYYY-MM-dd ：Y 和 y 实际上代表了不同的含义



y：year-of-era；正正经经的年；
	Y：week-based-year；只要本周跨年，那么这周就算入下一年；也就是 12 月
大坑，一定要注意！！！！



参考链接：

就在几天前，听说用了 YYYY-MM-dd 的程序员，都在加班改 Bug
...]]></description><category></category></item><item><title><![CDATA[elementUI之时间日期选择器 + watch监听]]></title><link>https://blog.youkuaiyun.com/ZXT149074136/article/details/103801739</link><guid>https://blog.youkuaiyun.com/ZXT149074136/article/details/103801739</guid><author>ZXT149074136</author><pubDate>Thu, 02 Jan 2020 11:53:59 +0800</pubDate><description><![CDATA[最近做项目时用到element UI的时间日期选择器，由于是需要设置系统开放时间和关闭时间，所以用到了两个el-date-picker



问题1：需要对两个选择器的所能选的时间范围做限制

   限制1：开放时间不能早于当前时间且不能晚于关闭时间

   限制2：关闭时间不能早于当前时间且不能早于开放时间

解决：picker-options属性

代码：


//html
&...]]></description><category></category></item><item><title><![CDATA[vue + ElementUI 关闭/取消对话框时清除form表单]]></title><link>https://blog.youkuaiyun.com/ZXT149074136/article/details/103587579</link><guid>https://blog.youkuaiyun.com/ZXT149074136/article/details/103587579</guid><author>ZXT149074136</author><pubDate>Tue, 17 Dec 2019 21:04:03 +0800</pubDate><description><![CDATA[要求：在点击x和点击取消时，清空form表单

1、点击x时，清空form表单

解决方法：需要用到dialog组件的before-close属性




 &lt;el-dialog title="新增专家信息" :visible.sync="addExpertInfo" :before-close="closeExpertFormDialog"&gt;




 //关闭dialog前
...]]></description><category></category></item><item><title><![CDATA[element UI 日期date-picker组件日期格式转化后限制时间范围picker-options失效]]></title><link>https://blog.youkuaiyun.com/ZXT149074136/article/details/103586613</link><guid>https://blog.youkuaiyun.com/ZXT149074136/article/details/103586613</guid><author>ZXT149074136</author><pubDate>Tue, 17 Dec 2019 20:05:55 +0800</pubDate><description><![CDATA[//html部分
 &lt;el-form
        :model="setTimeForm"
        ref="setTimeForm"
        :rules="setTimeRules"
        :label-width="formLabelWidth"
      &gt;
        &lt;el-form-item label="开放时间" pr...]]></description><category></category></item></channel></rss>