接口axios vue all
node中使用axios时:Error: unable to verify the first certificate 报错
参考 https://www.daozhao.com/10611.html 报错原因: 在使用浏览器访问时,客户端、服务器在握手阶段完成验证。当我们在node中使用axios请求时,客户端没法确认服务端的TLS证书 解决方案 1、局部 const axios = require('axios') c ......
How to use the Raspberry Pi to study the Linux kernel source code All In One
How to use the Raspberry Pi to study the Linux kernel source code All In One
如何利用树莓派来研究 Linux 内核源码 All In One
在 Linux 系统中,一切皆文件!
......
vue中通过$emit实现子向父通信
本篇讨论vue中使用$emit实现子向父通信, 第一步:我们在父组件中注册子组件,然后再给子组件标签添加一个自定义事件监听,这样在子组件实例上就绑定了一个自定义的事件add。 后面如果触发add事件,那么就会执行addBtnClick函数。 1 <template> 2 <div> 3 <h1>当前 ......
eureka源码简单剖析-服务端(服务接口暴露策略)
下面来看下服务接口暴露的策略。其中服务端使用了Jersey框架,而Jersey框架是一个发布restful风格接口的框架,类似我们使用的springmvc, 然后下面看下jersey部分 以上就是服务接口暴露的相关策略部分 ......
无显示器如何通过配置文件快速修复树莓派无法通过 SSH 访问的问题 All In One
无显示器如何通过配置文件快速修复树莓派无法通过 SSH 访问的问题 All In One
在没有显示器的情况下如何通过配置系统文件快速的修复树莓派无法通过 SSH 访问的问题 All In One
无显示器 SSH 远程访问 树莓派
......
vscode number of cursors limited to 10000 bug All In One
vscode number of cursors limited to 10000 bug All In One
vscode 全局替换光标限制最多 10000 个 ❌
......
Raspberry PI 设置开机自启动脚本 All In One
Raspberry PI 设置开机自启动脚本 All In One docs raspi-config $ sudo raspi-config https://www.raspberrypi.com/documentation/computers/configuration.html#raspi-c ......
vue做多选,传递数组类型到后端
1.需求:多选框选择多个类型,把选中的数据传递到后端 当初在做多选框,直接用了element-ui里面的el-check-box属性,在官网里面说,是使用v-modol绑定数值来传递,好嘛,,,传的一直是true!!不是我想要的数据,也是很久没使用vue框架了,做的时候很是怀疑自己,使用value来 ......
Vue2.0 学习 第三组 条件语句
本笔记主要参考菜鸟教程和官方文档编写。1.v-if在div或者之类的dom中使用v-if可以控制是否插入该dom,控制由v-if的true和false决定。如:<div id="app"><div v-if="test"></div> </div><script>new Vue({el:"#app" ......
how to use cURL with a variable in the URL string All In One
how to use cURL with a variable in the URL string All In One
如何在 cURL 的 URL 字符串中使用变量
系统变量
环境变量
shell 变量 ......
WebGPU All In One
WebGPU All In One
WebGPU 是一种 API,可让你执行 2 项基本操作。
绘制三角形/点/线到纹理
在 GPU 上运行计算
......
How to use SSH to access the Raspberry Pi without know the Wi-Fi IP address All In One
How to use SSH to access the Raspberry Pi without know the Wi-Fi IP address All In One
如何在不知道 Wi-Fi IP 地址的情况下使用 SSH 访问树莓派
没有显示器,不知道树莓派 IP 地址的情况下,如何通过 ... ......
Transformer网络-Self-attention is all your need
一、Transformer Transformer最开始用于机器翻译任务,其架构是seq2seq的编码器解码器架构。其核心是自注意力机制: 每个输入都可以看到全局信息,从而缓解RNN的长期依赖问题。 输入: (待学习的)输入词嵌入 + 位置编码(相对位置) 编码器结构: 6层编码器: 一层编码器 = ......
php输出文言文句 一言接口定义
随机本地词典内容,随机一行文本输出 <?php //获取句子文件的绝对路径 $file = file($yiyanPath."yiyan.txt"); //随机读取一行 $arr = mt_rand( 0, count( $file ) - 1 ); $content = trim($file[$a ......
vue2源码-五、将模板编译解析成AST语法树2
生成render函数 前言 上篇,生成ast语法树,而这篇使用ast语法树生成render函数。 export function compileToFunction(template) { // 1,将模板编译称为 AST 语法树 let ast = parserHTML(template); // ......
java -- 标记接口
标记接口 标记接口(Marker Interface),又称标签接口(Tag Interface) 仅代表一个标记 不包含任何方法 标记接口是用来判断某个类是否具有某种能力 Cloneable标记接口 此类实现了 Cloneable 接口,以指示 Object.clone 方法可以合法地对该类实例进 ......
Vue3中(vite.config.js)配置打包的时候去除console.log
参考:https://www.cnblogs.com/lovewhatIlove/p/16476165.html 安装terser npm add -D terser vite中配置 import { defineConfig } from "vite"; import vue from "@vit ......
Raspberry Pi Code Editor All In One
Raspberry Pi Code Editor All In One
GPIO module bug
......
通过nginx proxy manager解决https站点访问http接口资源报错问题
浏览器控制台报 Mixed Content: The page at '<URL>' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '<URL>'. This request has been blo ......
Vue3中使用mitt事件总线
在utils下封装mitt.js import mitt from 'mitt' export default mitt() // mitt基本使用:https://juejin.cn/post/6973106775755063333 组件中引入mitt并使用 import mitt from '@ ......
3.Vue3.0 有什么更新
1.监测机制的改变 3.0 将带来基于代理 Proxy 的 observer 实现,提供全语言覆盖的反应性跟踪。消除了 Vue 2 当中基于 Object.defineProperty 的实现所存在的很多限制。 2.只能监测属性,不能监测对象 检测属性的添加和删除; 检测数组索引和长度的变更; 支持 ......
vue自定义密码输入框解决浏览器自动填充密码的问题
问题描述 浏览器对于type="password"的输入框会自动填充密码,但有时出于安全或者其他原因,我们不希望浏览器记住并自动填充密码。通过网上查到的一些解决方案,可以总结出以下几种解决方案(主要用edge浏览器进行测试): 通过autocomplete="off"/autocomplete="n ......
Vue3组合API自动引入插件
插件名:unplugin-auto-import url:https://github.com/antfu/unplugin-auto-import 安装 1、下载插件 npm i unplugin-auto-import -D 2、配置vite.config.ts import vue from ......
vue-element-admin 动态菜单改造
vue-element-admin 动态菜单改造 vue-element-admin 是一款优秀后台前端解决方案,它基于 vue 和 element-ui实现。开源后台管理系统解决方案项目 Boot-admin的前端模块就是基于vue-element-admin开发而来。 作为一款纯前端的后台界面解 ......
vue 自定义季度选择器
1、效果 时间格式:2023-Q1 2、封装 quarter-picker.vue <template> <div class="quarter-picker"> <select class="year-select" v-model="year" @change="updateQuarter"> ......
项目连接讯飞语音接口的相关操作
相关操作 在讯飞官网找到了这样一个语音听写模件,然后自己尝试着调用了这个语音接口,幸运地,成功调用到了这个语音接口,但是这个调用仅仅是在Java里面实现了,并没有实现在web里面,后续还会继续完善这个调用的! 具体步骤 1、进入到讯飞平台官网:https://www.xfyun.cn/ 选择注册一个 ......
vue 不同版本定义 el-date-picker 日期选择器快捷项
1、效果 2、vue 2 :picker-options <el-date-picker style="width: 350px" v-model="dates" type="daterange" align="right" unlink-panels range-separator="至" sta ......
vue3+echart5 遇到的坑 Cannot read properties of undefined (reading 'type')(转)
原文:https://www.cnblogs.com/Bin-x/p/15342949.html 1、错误说明 vue3中,使用data的方式初始化echart图表 export default { data() { return { chart: null, ... } }, mounted() ......
通过OpenFeign远程调用同局域网的其他接口
通过OpenFeign远程调用同局域网的其他接口 需要的依赖 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-openfeign</artifactId> </dep ......