在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:hprose/hprose-html5开源软件地址:https://github.com/hprose/hprose-html5开源编程语言:JavaScript 98.7%开源软件介绍:Hprose for HTML5IntroductionHprose is a High Performance Remote Object Service Engine. It is a modern, lightweight, cross-language, cross-platform, object-oriented, high performance, remote dynamic communication middleware. It is not only easy to use, but powerful. You just need a little time to learn, then you can use it to easily construct cross language cross platform distributed application system. Hprose supports many programming languages, for example:
Through Hprose, You can conveniently and efficiently intercommunicate between those programming languages. This project is the implementation of Hprose for HTML5. Browser supportDesktop browsers
Mobile browsers
Hybird app support
TCP is only available on iOS for APICloud, because there is a bug of APICloud Android SDK, and they don't want to fix this bug. UsageYou don't need use the javascript source files. You only need include Exception HandlingIf an error occurred on the server, or your service function/method throw an exception, it will be sent to the client. You need to pass an error callback function after succuss callback function to receive it. If you omit this callback function, the client will ignore the exception, like never happened. For example: <html>
<head>
<script type="text/javascript" src="hprose-html5.js"></script>
</head>
<body>
<script type="text/javascript">
var client = new hprose.HttpClient("http://www.hprose.com/example/", ["hello"]);
client.hello("World!", function(result) {
alert(result);
}, function(name, err) {
alert(err);
});
</script>
</body> |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论