摘要: import { Dictionary, Common, userInfo, GameInfo } from "../Common"; // let targeOrigin = "http://127.0.0.1:8080"; let targeOrigin = "*"; // 最后处理过的消息 let lastInfo = { timeStamp: 0 } let events:... 阅读全文
posted @ 2018-09-07 17:34 薄荷味的笑 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 1.如果在程序运行当中需要修改一个图片的资源 //js中的结构体 interface IBallInfo{ subject:number; weight:number; } interface Dictionary<T>{ [key:string]:T; } export interface IUs 阅读全文
posted @ 2018-08-14 19:27 薄荷味的笑 阅读(195) 评论(0) 推荐(0) 编辑
摘要: const { ccclass, property } = cc._decorator; @ccclass export default class BallClass extends cc.Component { @property text: string = 'Ball'; @property(cc.Node) Ball: cc.Node = null; ... 阅读全文
posted @ 2018-08-10 19:16 薄荷味的笑 阅读(750) 评论(0) 推荐(0) 编辑
摘要: 1.首先在vscode中最左侧的扩展里边,下载debugger fo chrom, 安装成功后会有一个launch.json,修改内容: 阅读全文
posted @ 2018-08-10 18:57 薄荷味的笑 阅读(1258) 评论(0) 推荐(0) 编辑
摘要: 在新公司开始做客户端了,之前做客户端的少,大多数时间做的是服务器。看了两天的cocosCreator,做一些总结,把遇到的问题和自己不懂的地方记录下来。 阅读全文
posted @ 2018-08-09 19:50 薄荷味的笑 阅读(517) 评论(0) 推荐(0) 编辑
摘要: 1 #include "stdafx.h" 2 #include 3 int h[101];//用来存放堆的数组 4 int n;//用来存储堆中元素的个数,也就是堆的大小 5 6 void swap(int x,int y){ 7 int temp = h[x]; 8 h[x] = h[y]; 9 h[y] = temp; 10 return... 阅读全文
posted @ 2018-08-05 13:25 薄荷味的笑 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 1 USE QPClub 2 GO 3 4 IF EXISTS (SELECT * FROM DBO.SYSOBJECTS WHERE ID = OBJECT_ID(N'[dbo].[GSP_GR_Query_Profit_Info]') and OBJECTPROPERTY(ID, N'IsProcedure') = 1) 5 DROP PROCEDURE [dbo].[GSP_G... 阅读全文
posted @ 2018-08-04 13:27 薄荷味的笑 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 一、简答题。(共4题,共20分,每题5分) 1、void main(void) { char *str = (char *) malloc(100); strcpy(str, "hello"); free(str); if(str != NULL) { strcpy(str, “world”); printf(str); } } 请问运行main函数会有什么样的结果? 最佳答案是:篡改动态内存区... 阅读全文
posted @ 2018-08-02 20:50 薄荷味的笑 阅读(732) 评论(0) 推荐(0) 编辑
摘要: #include "Stdafx.h" #include "AndroidUserItemSink.h" #include "Config.h" #include #include #include #include #include #include #include "Tools.h" #define _CRTDBG_MAP_ALLOC #include #ifde... 阅读全文
posted @ 2018-08-02 17:44 薄荷味的笑 阅读(268) 评论(0) 推荐(0) 编辑
摘要: https://github.com/NetEase/pomelo/wiki/Home-in-Chinese所以在pomelo中我们发起rpc调用都是如下形式:this.app.rpc.yourServerType.yourServerTypeRemote.method() monogoose 下的 阅读全文
posted @ 2018-08-02 16:59 薄荷味的笑 阅读(105) 评论(0) 推荐(0) 编辑