02 2023 档案

摘要:常见 strings 操作 https://pkg.go.dev/strings Go Version: 1.20.1 一、概要 Package strings implements simple functions to manipulate UTF-8 encoded strings. (Pac 阅读全文
posted @ 2023-02-28 22:31 左扬 阅读(295) 评论(0) 推荐(0) 编辑
摘要:双引号、单引号字符串的区别 双引号:双引号括起来的字符串允许有转义字符。 反引号:反引号扩起来的字符串称作 "原始字符串",其中有转义字符的话不会进行转义,会被原样输出。 反引号括起来的原始字符串中不能有反引号这个字符串本身。 1、双引号 示例代码: package main import "fmt 阅读全文
posted @ 2023-02-28 21:47 左扬 阅读(166) 评论(0) 推荐(0) 编辑
摘要:byte类型的切片([]byte)与string Go 语言中,表示字符串的数据类型是 string。我们知道字符串是由字节组成,而字节序列在 Go 语言中是用 byte 类型的切片([]byte)表达,因此 string 类型和 []byte 是可以互相转化的。 package main impo 阅读全文
posted @ 2023-02-28 21:31 左扬 阅读(1930) 评论(0) 推荐(0) 编辑
摘要:常见报错: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH% 一、背景 操作系统:windows 10 专业版 Go版本:go version go1.19.4 windows/amd64 开发工 阅读全文
posted @ 2023-02-25 17:00 左扬 阅读(3504) 评论(0) 推荐(0) 编辑
摘要:Istio Deployment Models https://istio.io/latest/docs/ops/deployment/deployment-models/ When configuring a production deployment of Istio, you need to 阅读全文
posted @ 2023-02-18 18:36 左扬 阅读(147) 评论(0) 推荐(0) 编辑
摘要:Centos7 一次性安装:yum -y groupinstall "Development tools" 一、查看 grouplist [root@localhost ~]# yum grouplist | more Loaded plugins: fastestmirror There is n 阅读全文
posted @ 2023-02-10 16:48 左扬 阅读(2922) 评论(0) 推荐(1) 编辑
摘要:Istio Getting Started https://istio.io/latest/docs/setup/getting-started/ This guide lets you quickly evaluate Istio. If you are already familiar with 阅读全文
posted @ 2023-02-06 20:46 左扬 阅读(260) 评论(0) 推荐(0) 编辑
摘要:介绍 Istio (version: 1.16.2, Jan 30, 2023发版) https://istio.io/latest/ 一、Istio 是什么? https://istio.io/latest/about/service-mesh/ Istio is an open source s 阅读全文
posted @ 2023-02-06 18:19 左扬 阅读(257) 评论(0) 推荐(0) 编辑
摘要:watch侦听器——深层侦听 https://cn.vuejs.org/guide/essentials/watchers.html#basic-example 直接给watch()传入一个响应式对象,会隐式地创建一个深层侦听器——该回调函数在所有嵌套的变更时都会被触发: const obj = r 阅读全文
posted @ 2023-02-04 21:21 左扬 阅读(171) 评论(0) 推荐(0) 编辑
摘要:watch侦听器——侦听数据源类型 https://cn.vuejs.org/guide/essentials/watchers.html#basic-example watch的第一个参数可以是不同形式的“数据源”:它可以是一个 ref (包括计算属性)、一个响应式对象、一个 getter 函数、 阅读全文
posted @ 2023-02-04 21:10 左扬 阅读(89) 评论(0) 推荐(0) 编辑
摘要:watch侦听器 https://cn.vuejs.org/guide/essentials/watchers.html 虽然计算属性在大多数情况下更适合,但有时也需要一个自定义的侦听器。 这就是为什么 vue 通过 watch 选项提供了一个更通用的方法来响应数据的变化。当需要在数据变化时执行异步 阅读全文
posted @ 2023-02-04 20:39 左扬 阅读(83) 评论(0) 推荐(1) 编辑
摘要:计算属性的getter和setter https://cn.vuejs.org/guide/essentials/computed.html#basic-example (我这里没有使用vue官网提供的例子) 计算属性默认是只读的。当你尝试修改一个计算属性时,你会收到一个运行时警告。只在某些特殊场景 阅读全文
posted @ 2023-02-04 19:33 左扬 阅读(383) 评论(0) 推荐(0) 编辑
摘要:计算属性缓存 vs 方法 https://cn.vuejs.org/guide/essentials/computed.html#basic-example template: <p>{{ calculateBooksMessage() }}</p> js: // 组件中 function calc 阅读全文
posted @ 2023-02-04 19:30 左扬 阅读(58) 评论(0) 推荐(0) 编辑
摘要:计算属性 https://cn.vuejs.org/guide/essentials/computed.html 模板中的表达式虽然方便,但也只能用来做简单的操作。如果在模板中写太多逻辑,会让模板变得臃肿,难以维护。 比如说,我们有这样一个包含嵌套数组的对象: js: const author = 阅读全文
posted @ 2023-02-04 19:15 左扬 阅读(54) 评论(0) 推荐(0) 编辑
摘要:单文件组件(SFC) https://cn.vuejs.org/guide/scaling-up/sfc.html 一、单文件组件(SFC)是什么? vue 的单文件组件 (即*.vue文件,英文 Single-File Component,简称SFC) 是一种特殊的文件格式,使我们能够将一个 vu 阅读全文
posted @ 2023-02-03 23:24 左扬 阅读(449) 评论(0) 推荐(0) 编辑
摘要:多个应用实例 https://cn.vuejs.org/guide/essentials/application.html#multiple-application-instances 应用实例并不只限于一个。 createAppAPI 允许你在同一个页面中创建多个共存的 vue 应用,而且每个应用 阅读全文
posted @ 2023-02-03 23:13 左扬 阅读(438) 评论(0) 推荐(0) 编辑
摘要:应用配置 https://cn.vuejs.org/guide/essentials/application.html#mounting-the-app 应用实例会暴露一个.config对象允许我们配置一些应用级的选项。 例如定义一个应用级的错误处理器,用来捕获所有子组件上的错误: js: app. 阅读全文
posted @ 2023-02-03 23:09 左扬 阅读(52) 评论(0) 推荐(0) 编辑
摘要:根组件 https://cn.vuejs.org/guide/essentials/application.html#the-root-component 一、先创建一个vue实例 每个 Vue 应用都是通过createApp函数创建一个新的应用实例: import { createApp } fr 阅读全文
posted @ 2023-02-03 22:58 左扬 阅读(274) 评论(0) 推荐(0) 编辑
摘要:DOM 中的根组件模板 https://cn.vuejs.org/guide/essentials/application.html#the-root-component 当在未采用构建流程的情况下使用 Vue 时,我们可以在挂载容器中直接书写根组件模板: html: <div id="app"> 阅读全文
posted @ 2023-02-03 22:44 左扬 阅读(216) 评论(0) 推荐(0) 编辑
摘要:Visual Studio Code 使用 Vite 安装 TypeScript + Vue3项目 Vite 是一个轻量级的、速度极快的构建工具,对 Vue SFC 提供第一优先级支持。作者是尤雨溪,同时也是 Vue 的作者。 要使用 vite 来创建一个 vue 项目,非常的简单: 安装前需要有 阅读全文
posted @ 2023-02-03 19:59 左扬 阅读(1540) 评论(0) 推荐(0) 编辑

levels of contents
点击右上角即可分享
微信分享提示