我的控制器返回:
hookID = SetWindowsHookEx((int) WH_TYPE.WH_KEYBOARD, hp,IntPtr.Zero, 0);
如何在div的新html页面加载数据,例如。
1奥迪
2宝马
3欧宝
函数callJson(){
@http.route('/my_json', type="json", auth="public")
def some_json(self):
return json.dumps({"ids":[{"id": 1,"name": "Audi"},{"id": 2,"name": "BMW"},{"id": 3,"name": "OPEL"}]})
警报返回:
{" jsonrpc":" 2.0"," id":null,"结果":" {\& #34; ids \":[{\" id \":1,\"名称":\"奥迪\"} ,{\" id \":2,\" name \":\" BMW \"},{\" id \& #34;:3,\"名称\":\"欧宝\"}]}"}