private void button1_Click(object sender, EventArgs e) { MODI.Document doc = new MODI.Document(); doc.Create("C:\\OCR\\text.jpg"); MODI.Image image; M ...
1、构造函数也是一个普通函数,创建方式和普通函数一样,但构造函数习惯上首字母大写; 2、作用不一样(构造函数用来新建实例对象); 3、调用方式不一样。 a. 普通函数的调用方式:直接调用 person(); b.构造函数的调用方式:需要使用new关键字来调用 new Person(); 4、构造函数 ...
分类:
Web程序 时间:
2020-10-05 22:33:55
阅读次数:
50
前台html代码: <div class="container"> <form th:method="POST" th:action="@{/login}" th:object="${user}"> <div class="table-responsive"> <table class="table ...
分类:
编程语言 时间:
2020-10-05 22:14:05
阅读次数:
30
java 服务端测试代码: @Override public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception { buffer.writeShort(5); buff ...
分类:
编程语言 时间:
2020-10-05 21:23:34
阅读次数:
42
;(function(global,factory){ typeof exports 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define 'function' && define ...
分类:
其他好文 时间:
2020-09-24 22:08:52
阅读次数:
79
现在有两个对象: let a = {name: 'zj', tel: '123', sex: 0, id: 1}let b = {name: 'zj', tel: '123', sex: 0, id: 1}如何判断对象a和对象b相等呢?a==b //false Object.is(a,b) //fa ...
分类:
其他好文 时间:
2020-09-24 22:04:06
阅读次数:
63
import xlrdapply_dic = []def get_excel(excel_path): with xlrd.open_workbook(excel_path) as workbook : name_sheets = workbook.sheet_names() #获取Excel的sh ...
分类:
其他好文 时间:
2020-09-24 21:49:24
阅读次数:
42
flask中的配置文件是一个flask.config.Config对象(继承字典),默认配置为: { 'DEBUG': get_debug_flag(default=False), 是否开启Debug模式 'TESTING': False, 是否开启测试模式 'PROPAGATE_EXCEPTION ...
分类:
其他好文 时间:
2020-09-24 21:19:54
阅读次数:
30
一、eureka:服务注册 1、服务端(先启动) 1、pom.xml <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-server</a ...
分类:
编程语言 时间:
2020-09-24 21:06:33
阅读次数:
52
1.Object构造函数创建 // 1.Object构造函数创建 var Obj = new Object(); Obj.name='saoge'; Obj.say=function(){ console.log(`我的名字是${this.name}`) } Obj.say(); 2.使用对象字面量 ...
分类:
编程语言 时间:
2020-09-24 00:03:48
阅读次数:
38