项目主页: https://github.com/shopex/prism-js/
In the shell:
npm install prism-js
In your app:
require('prism-js');
client = prism("http://127.0.0.1:8080/api", "umjj5xj6", "xa4k7gzyemzjkscapdjb");
client.rpc("platform/notify/write", {
async: false,
type: "POST",
params: {"a":"b"},
success: function(result){
console.info("test-success:");
console.info(result)
},
error: function(err){
console.info("test-error:");
console.info(err)
},
timeout: 3
});