nginx的配置为*.conf ,这个conf是么子文件?之前确实不清楚。 HOCON 简介HOCON(Human-Optimized Config Object Notation)是一个易于使用的配置文件格式。它被用于 Sponge 以及利用 Sponge API 的独立插件以储存重要的数据,比如 ...
分类:
其他好文 时间:
2019-12-28 20:56:37
阅读次数:
234
先要解绑触发事件: $('#start').unbind('focus'); 然后再绑定触发事件: $('#start').bind('focus',function(){WdatePicker({skin:'whyGreen',dateFmt:'yyyy'});}); ...
分类:
Web程序 时间:
2019-12-27 15:15:37
阅读次数:
226
Part1 换装系统 1.使用skin_id 来记录当前皮肤的状态,使用cloth_id 来记录角色穿的球衣; 2.使用三个回调函数 NormalFootBall() FireFootBall() ColorFootBall() 来改变角色所控制的足球; 3.设计一个有限状态机,更新对应角色的装备情 ...
分类:
其他好文 时间:
2019-12-21 11:55:20
阅读次数:
81
1 package main 2 3 import "fmt" 4 5 type Human struct { 6 name string 7 age int 8 phone string 9 } 10 11 type Student struct { 12 Human //匿名字段 13 scho ...
分类:
其他好文 时间:
2019-12-20 22:20:53
阅读次数:
107
到底该用多少线程?线程数、CPU核心数、本地计算时间、等待时间的关系 线程数 = CPU核心数 * ( 本地计算时间 + 等待时间 ) / 本地计算时间 下面是Task.Factory.StartNew和自己写的TaskHelper.LargeTask.Run对比测试 一、Task.Factory. ...
分类:
其他好文 时间:
2019-12-15 00:55:03
阅读次数:
110
练习3-1 /* 猜拳游戏(其四:分割函数/显示成绩)*/ #include <time.h> #include <stdio.h> #include <stdlib.h> int human; /* 玩家的手势 */ int comp; /* 计算机的手势 */ int win_no; /* 胜利 ...
分类:
编程语言 时间:
2019-12-05 01:07:08
阅读次数:
86
package main import ( "encoding/json" "fmt" ) type Human struct { Name string Age int Rmb float64 Gender bool Hobbies []string } var jsonStr = `{ "nam... ...
分类:
编程语言 时间:
2019-12-02 23:38:41
阅读次数:
146
golang 的fmt 包实现了格式化I/O函数,类似于C的 printf 和 scanf。 # 定义示例类型和变量 type Human struct { Name string } var people = Human{Name:"zhangsan"} 普通占位符 占位符 说明 举例 输出 %v ...
分类:
其他好文 时间:
2019-12-01 15:16:13
阅读次数:
105
fat-aar实践及原理分享:https://www.jianshu.com/p/57024509b1d6?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation ...
分类:
其他好文 时间:
2019-11-26 19:49:22
阅读次数:
60
官网说明 1.1 创建自己的 FailureAnalyzer FailureAnalyzer是一种在启动时拦截 exception 并将其转换为 human-readable 消息的好方法,包含在故障分析中。 Spring Boot 为 application context 相关的 excepti ...
分类:
编程语言 时间:
2019-11-25 00:24:51
阅读次数:
115