前言: animate需要使用CCAnimation对象来进行初始化。该对象是继承CCObject CCAnimation的构造过程有多种方式,可以通过plist也可以通过直接设置图片的方式。 一、CCAnimationCache:animation的解析器 通过addAnimationsWithF ...
分类:
其他好文 时间:
2020-05-10 23:24:56
阅读次数:
74
1、CCToggleVisibility对当前的action动作的精灵对象进行取反的visible设置 CCActionInterval* move1 = CCMoveBy::create(1, ccp(250,0)); CCActionInterval* move2 = CCMoveBy::cre ...
分类:
其他好文 时间:
2020-05-10 14:40:33
阅读次数:
65
.Net 的 REST 库 RestSharp,及相关的 httpclient: 1、RestSharp : https://restsharp.dev/ https://github.com/restsharp/RestSharp 2、httpclient : 微软官方产品 ...
分类:
Web程序 时间:
2020-05-05 10:58:25
阅读次数:
101
学习微服务首先要学习的组件就是注册中心。 1.为什么需要微服务 我们知道微服务是将传统的单体架构的业务模块拆分为一个个独立的分布式服务。 不同服务之间我们可以通过UrlConnection,HttpClient,OKhttp等技术进行调用,我们通常会使用Spring提供的RestTemplate进行 ...
分类:
编程语言 时间:
2020-05-03 21:39:08
阅读次数:
72
package jkcs; import java.io.IOException; import java.net.URI; import java.net.URISyntaxException; import org.apache.http.Header; import org.apache.ht ...
分类:
编程语言 时间:
2020-05-03 16:59:39
阅读次数:
92
httpclient技术可以调用api地址http://vod.cn-shanghai.aliyunes.com/Action=GetPlayInfo&VideoId=1223 API: 阿里云提供固定的地址,只需要调用这个固定的地址,向地址传递参数,实现功能。 SDK:sdk对api方式进行封装, ...
分类:
其他好文 时间:
2020-05-03 12:59:40
阅读次数:
400
https://segmentfault.com/q/1010000004657976 https://blog.csdn.net/wutongyu0123wutongyu/article/details/52132892 https://www.jianshu.com/p/3665d1900847 ...
分类:
移动开发 时间:
2020-05-02 10:08:56
阅读次数:
130
接口自动化大致步骤: 1、发送请求 2、解析结果 3、验证结果 定义三个和业务相关的类 1、一个用来封装HTTPclient,用来发送请求 2、解析结果xml的类 3、一个用于比较测试结果和期望值的类,用于验证 4、自动生成报告的类:自动发送报告之类的 (locust的python工具) 服务级:W ...
分类:
其他好文 时间:
2020-05-01 12:38:33
阅读次数:
84
<dependency> <groupId>commons-httpclient</groupId> <artifactId>commons-httpclient</artifactId> <version>3.1</version> </dependency> package com.amdox. ...
分类:
Web程序 时间:
2020-04-28 15:15:04
阅读次数:
72
using ICSharpCode.SharpZipLib.GZip; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Net; using Sy ...
分类:
Web程序 时间:
2020-04-28 09:47:34
阅读次数:
47