<div id="app"> <input type="text" ref="input1"/> <button @click="add">添加</button> </div> <script> new Vue({ el: "#app", methods:{ add:function(){ this ...
分类:
其他好文 时间:
2020-08-20 18:58:41
阅读次数:
63
using UnityEngine; public class SwitchMaterial : MonoBehaviour { public Material M1, M2; // 贴图 void Update() { if (Input.GetKey(KeyCode.A)) { this.tra ...
分类:
其他好文 时间:
2020-08-19 19:48:48
阅读次数:
67
Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed to the original key plus sum of all ...
分类:
其他好文 时间:
2020-08-19 19:48:05
阅读次数:
63
学习内容: 1.数据输入/输出流允许应用程序以与机器无关的方式从底层输入流中读取基本Java数据类型。 2.DataInputStream:使用指定的基础InputStream创建一个DataInputStream。 3.DataOutputStream:创建一个新的数据输出流,将数据写入指定基础输 ...
分类:
其他好文 时间:
2020-08-18 13:33:25
阅读次数:
48
如果这个图是欧拉路,则每个顶点的出度等于入度。即out[i] = in[i] 如果这个图是半欧拉图,则起点的出度比入度大1,终点的入度比出度大1.其余顶点的出度等于入度。如果满足上述条件,就可以将所有单词链接起来,否则不能。 当然,在判断出度入度的时候还有一点需要注意,那就是除了起点终点以外的顶点, ...
分类:
其他好文 时间:
2020-08-10 17:33:39
阅读次数:
73
lazy v-model 是每次修改都会绑定值,添加了 lazy 就只会在回车后或者失去焦点后绑定 使用 v-model.lazy = 'msg' number 默认以 string 类型保存在 data 中,通过 number 修饰符可以以 number 类型存入 data 中 使用 <input ...
分类:
其他好文 时间:
2020-08-08 10:35:48
阅读次数:
85
参考:https://blog.csdn.net/q774318039a/article/details/88778669前言从FPGA的PAD到IOB里面的寄存器是有专用布线资源的,而到内部其他寄存器没有专用的布线资源。使用IOB里面的寄存器可以保证每次实现的结果都一样,使用内部其他寄存器就无法保... ...
分类:
其他好文 时间:
2020-08-05 13:09:42
阅读次数:
79
1 function getImageWithText(canvas, text) { 2 3 const context = canvas.getContext("2d"); 4 5 // add the screenshot data to the canvas 6 7 // let rawDa ...
分类:
Web程序 时间:
2020-08-04 14:14:38
阅读次数:
145
在自己局域网连接ssh到自己的小主机服务器上的时候发现执行ssh root@192.168.50.176回车之后,在输入密码之前要等好长一段时间,至少需要十几秒钟。 1、通过ssh -v root@192.168.50.176查看连接详细信息 # ssh -v root@192.168.50.176 ...
分类:
其他好文 时间:
2020-08-04 09:45:31
阅读次数:
97