摘要: File.ReadAllText(fileName, System.Text.Encoding.Default); 后面要加System.Text.Encoding.Default 阅读全文
posted @ 2023-05-11 14:14 bingxingc 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 事件处理: <div id="app"> <h1>点击事件实例</h1> <button v-on:click="showInfo1">点我出提示</button> <button @click="showInfo2(111,$event)">点我出提示</button> </div> <scrip 阅读全文
posted @ 2022-08-18 17:13 bingxingc 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 为对象增加属性,也可以设置增加的属性的一些特性, <script> let person = { name:'张三', sex:'男' } Object.defineProperty(person,'age',{ value:18 }) console.log(person) </script> 设 阅读全文
posted @ 2022-08-18 16:34 bingxingc 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 第二种 绑定div元素的写法 <div id="app"> <h1>hello {{name}}</h1> </div> <script> const v = new Vue({ //el:'#app' data:{ name:'chen', } }) v.$mount('#app') </scri 阅读全文
posted @ 2022-08-18 15:30 bingxingc 阅读(38) 评论(0) 推荐(0) 编辑
摘要: vue数据双向绑定 <div id="app"> 单向数据绑定:<input type="text" v-bind:value="txt"> <br> <br> 双向数据绑定:<input type="text" v-model:value="txt"> </div> <script> new Vu 阅读全文
posted @ 2022-08-18 00:32 bingxingc 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 数据 绑定 案例1: <div id="app"> <h1> <a :href="url">{{name}}</a> </h1> </div> <script> new Vue({ el: '#app', data: { name: '百度', url: 'http://www.baidu.com' 阅读全文
posted @ 2022-08-17 23:40 bingxingc 阅读(15) 评论(0) 推荐(0) 编辑
摘要: ping 错误提示和原因 超时 对方主机不在线、屏蔽等(请求已经发出来了或者给网关) 传输失败 当主机尝试去访问其他网络内的主机,而本身没有配置网关 无法访问 网关没有路由、没有获取到MAC地址 阅读全文
posted @ 2022-05-09 15:41 bingxingc 阅读(100) 评论(0) 推荐(0) 编辑
摘要: mysql 8.0 重置密码出现: Can''t connect to MySQL server on localhost (10061) 转载:https://blog.csdn.net/yeewingho/article/details/107195210 阅读全文
posted @ 2022-04-02 12:18 bingxingc 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 在 Winform 里有时会需要打开另一个应用程序或文件,比如打开浏览器、打开word文档、打开文件夹和打印文件等等。本文介绍用 C# 在 Winform 中打开一个新进程,完成上述功能。 using System.Diagnostics 该命名空间提供与系统进程、事件日志、性能计数器的交互。其中与 阅读全文
posted @ 2022-03-28 18:18 bingxingc 阅读(291) 评论(0) 推荐(0) 编辑
摘要: winform判断快捷键 C# winform的窗体类有KeyPreview属性,可以接收窗体内控件的键盘事件注册。 窗体和控件都有KeyDown,KeyUp,KeyPress三个事件,每个事件都会有KeyEventArgs参数传入,只要判断传入参数的KeyChar就可以了,Framework提供了 阅读全文
posted @ 2022-03-23 13:25 bingxingc 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 手动生成按钮,并添加事件,事件里要传递参数 注意 button.Click += (o,a) => OpenToPlay(f);要写成(o,a)必须是这样 //创建按钮 Button button = new Button(); button.Text = Path.GetFileName(f); 阅读全文
posted @ 2022-03-23 13:07 bingxingc 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 省会: 黑龙江 哈尔滨 江苏省 南京 吉林省 长春 四川省 成都 辽宁省 沈阳 贵州省 贵阳 河北省 石家庄 云南省 昆明 甘肃省 兰州 浙江省 杭州 青海省 西宁 江西省 南昌 陕西省 西安 广东省 广州 河南省 郑州 福建省 福州 山东省 济南 台湾省 台北 山西省 太原 海南省 海口 安徽省 阅读全文
posted @ 2022-03-03 22:40 bingxingc 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 1、名片标准尺寸:90mmX54mm 90mmX50mm 90mmX45mm。 但是加上出血上下左右各2mm,所以: 制作尺寸必须设定为:94 x 58mm 94mmX54mm 94mmX48mm。 2、如果您的成品尺寸超出一张名片的大小,请注明您要的正确尺寸,上下左右也是各2mm的出血。 3、色彩 阅读全文
posted @ 2022-03-03 20:50 bingxingc 阅读(895) 评论(0) 推荐(0) 编辑
摘要: func tickDemo() { ticker := time.Tick(time.Second) //定义一个1秒间隔的定时器 for i := range ticker { fmt.Println(i)//每秒都会执行的任务 } } 阅读全文
posted @ 2022-03-03 20:49 bingxingc 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 568B标准:橙白,橙,绿白,蓝,蓝白,绿,棕白,棕 阅读全文
posted @ 2022-03-03 20:45 bingxingc 阅读(829) 评论(0) 推荐(0) 编辑
摘要: 练习 练习1:无为 待在你现在坐着的地方,只需轻轻闭上眼睛,静坐一两分钟。如果有很多思绪涌现出来,没关系,任由它们来去,你要体会静坐的感觉,什么都不要做,只需一两分钟。 练习2:感觉 坐在现在的位置上别动,然后慢慢地把注意力集中到某种躯体感觉上,可以是听觉、视觉或者呼吸上。我建议你闭上眼睛倾听周围的 阅读全文
posted @ 2022-03-03 20:44 bingxingc 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 序列化: Student student1 = new Student { Id = 12883, Name = "Jim David", Scores = new double[] { 87.5, 92, 76.2 } }; Student student2 = new Student { Id 阅读全文
posted @ 2022-02-12 23:46 bingxingc 阅读(315) 评论(0) 推荐(0) 编辑
摘要: C#命名规范 .net(C#)的命名规范本文从类、类字段、方法属性、参数常量、接口、事件、命名空间等9个方面总结了C#语言命名的规则。下面介绍C#语言命名的9种规范:a)类【规则1-1】使用Pascal规则命名类名,即首字母要大写。【规则1-2】使用能够反映类功能的名词或名词短语命名类。【规则1-3 阅读全文
posted @ 2022-02-07 00:14 bingxingc 阅读(7120) 评论(0) 推荐(0) 编辑
摘要: 1、下载 go get github.com/pilu/fresh 2、在项目里执行命令 fresh 阅读全文
posted @ 2022-02-06 20:28 bingxingc 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 1、安装 go get -u github.com/gin-gonic/gin 2、在go.mod写入代码 : require github.com/gin-gonic/gin v1.7.7 3、更新下mod包,test为项目名 go mod init test go mod tidy 5、引入gi 阅读全文
posted @ 2022-01-30 16:24 bingxingc 阅读(557) 评论(0) 推荐(0) 编辑
摘要: go语言 JSON 读写到文件 func readFile() { filePtr, err := os.Open("person_info.json") if err != nil { fmt.Println("Open file failed [Err:%s]", err.Error()) re 阅读全文
posted @ 2022-01-11 03:33 bingxingc 阅读(393) 评论(0) 推荐(0) 编辑
摘要: Spring使用的注解大全和解释 注解解释 @Controller 组合注解(组合了@Component注解),应用在MVC层(控制层),DispatcherServlet会自动扫描注解了此注解的类,然后将web请求映射到注解了@RequestMapping的方法上。 @Service 组合注解(组 阅读全文
posted @ 2022-01-04 18:55 bingxingc 阅读(25) 评论(0) 推荐(0) 编辑
摘要: beans的XML 配置文件 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XML 阅读全文
posted @ 2022-01-04 17:42 bingxingc 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 颜色代码:C7EDCC 阅读全文
posted @ 2022-01-03 01:32 bingxingc 阅读(36) 评论(0) 推荐(0) 编辑
摘要: print("\033[H\033[2J") 阅读全文
posted @ 2022-01-02 23:47 bingxingc 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 转载:http://www.cnblogs.com/igrl/archive/2010/03/29/1699975.html /// <summary> /// 播放MP3文件 /// </summary> public class Mp3Player { //定义API函数使用的字符串变量 [Ma 阅读全文
posted @ 2021-12-19 01:22 bingxingc 阅读(521) 评论(0) 推荐(0) 编辑
摘要: WPF布局的6种面板 WPF用于布局的面板主要有6个,StackPanel(栈面板)、WrapPanel(环绕面板)、DockPanel(停靠面板)、Canvas(画布)、Grid(网格面板)和 UniformGrid(均布网格)。一下详细介绍几种面板各自的特点: 1、StackPanel 栈面板, 阅读全文
posted @ 2021-11-19 09:26 bingxingc 阅读(1427) 评论(0) 推荐(0) 编辑
摘要: C#设置本地网络(DNS、网关、子网掩码、IP) 如今网络在我们的生活工作中所起的作用越来越大,可以说离开了网络我们就无法正常的工作和生活。作为程序员我们写的程序大多数也会跟网络相关,而想要使用网络首先要将机器的网络配置设置好。而手动设置的方法显然很不可取,所以我们要让程序帮我们完成。下面是一个很常 阅读全文
posted @ 2021-11-08 21:47 bingxingc 阅读(1147) 评论(0) 推荐(0) 编辑
摘要: Task Task的背后的实现也是使用了线程池线程,但它的性能优于ThreadPoll,因为它使用的不是线程池的全局队列,而是使用的本地队列,使线程之间的资源竞争减少。同时Task提供了丰富的API来管理线程、控制。但是相对前面的两种耗内存,Task依赖于CPU对于多核的CPU性能远超前两者,单核的 阅读全文
posted @ 2021-11-02 01:15 bingxingc 阅读(2026) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { string mac=null,ip=null,ipsubnet=null,ipgateway=null,ipport=null; ManagementClass mc = new ManagementClass("Win32_Ne 阅读全文
posted @ 2021-10-21 22:44 bingxingc 阅读(544) 评论(0) 推荐(0) 编辑
摘要: c#使用System.Media.SoundPlayer播放资源文件中的wav文件 创建: System.Media.SoundPlayer soundplayer = new System.Media.SoundPlayer(); 初始化路径: soundplayer.SoundLocation 阅读全文
posted @ 2021-04-11 16:09 bingxingc 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 简单宏:bai只误导焦点的宏/cast [@focus]误导du扩展一:zhi优先误导焦点,没焦点误dao导当前zhuan目标,都没有则误导自己的shu宠物/cast [@focus,help,exists,nodead][help,exists,nodead][@pet]误导扩展二:误导当前目标并 阅读全文
posted @ 2020-12-12 11:08 bingxingc 阅读(4454) 评论(0) 推荐(0) 编辑
摘要: CC换肤盒子免费版 英雄联盟 换肤 阅读全文
posted @ 2020-11-22 11:58 bingxingc 阅读(71) 评论(0) 推荐(0) 编辑
摘要: application.yml spring: profiles: active: dev application-dev.yml server: port: 8088 spring: datasource: username: root password: Chen6218 url: jdbc:m 阅读全文
posted @ 2020-09-13 21:22 bingxingc 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 注释文档: /** * @Title: * @Description: [功能描述] * @Param: * @author * @CreateDate: > * @update: */ 阅读全文
posted @ 2020-09-11 16:50 bingxingc 阅读(115) 评论(0) 推荐(0) 编辑
摘要: springboot 网页模板thymeleaf POM配置: <dependency> <groupId>org.thymeleaf</groupId> <artifactId>thymeleaf-spring5</artifactId> </dependency> <dependency> <g 阅读全文
posted @ 2020-09-11 15:47 bingxingc 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 正则表达式语法 在其他语言中,\\ 表示:我想要在正则表达式中插入一个普通的(字面上的)反斜杠,请不要给它任何特殊的意义。 在 Java 中,\\ 表示:我要插入一个正则表达式的反斜线,所以其后的字符具有特殊的意义。 所以,在其他的语言中(如Perl),一个反斜杠 \ 就足以具有转义的作用,而在 J 阅读全文
posted @ 2020-09-09 23:37 bingxingc 阅读(227) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> #show{ width:600px; height: 220px; background-color: darks 阅读全文
posted @ 2020-08-13 06:52 bingxingc 阅读(131) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>百度</title> <style type="text/css"> #middle{ position: absolute; margin-left: 35% 阅读全文
posted @ 2020-08-04 03:19 bingxingc 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 审判 高级神佑 敏捷 气势 反震 阅读全文
posted @ 2020-08-04 02:26 bingxingc 阅读(94) 评论(0) 推荐(0) 编辑