"> slf4j-api.jar
b. 实例化GoEasy对象
GoEasy goEasy = new GoEasy("your appkey");
c. 推送消息
goEasy.publish('your_channel', '第一条用GoEasy推送的消息,你真棒!');
4.2. JS推送
a. 引入goeasy.js
<script type="text/javascript" src="https://cdn.goeasy.io/goeasy.js"></script>
b. 实例化Goeasy对象,并用publish函数进行推送
<script type="text/javascript">
var goEasy = new GoEasy({appkey: 'your appkey'});
goEasy. publish ({
channel: 'your_channel',
message: '用goeasy推送的第二条消息, 棒极了!'
});
</script>
4.3. 用RestAPI进行推送
URL: https://goeasy.io/goeasy/publish
Method: Post
参数:appkey, channel, content
例如:https://goeasy.io/goeasy/publish?appkey={your_appkey}&channel={your_channel}&content={your_message}
GoEasy官网:https://goeasy.io
快速入门:https://goeasy.io/www/started.jsp
文档下载:https://goeasy.io/www/docs.jsp
}'这是取得Action穿过来的值,如果想取当前标题改为document.title. <a href="javascript:void" onclick="postToWb();" class="t