latte_lib
Version:
18 lines (17 loc) • 391 B
HTML
<html>
<head>
</head>
<body>
<button onClick="test();">测试</button>
<script type="text/javascript" src="./build/latte_lib.js"></script>
<script type="text/javascript">
function test() {
latte.require("latte_lib").xhr.post("http://127.0.0.1:8080/json").type("json").send({
"test": "hello"
}).end(function(err, data){
console.log(err, data);
});
}
</script>
</body>
</html>