demo1. 模拟用字符串调用js 函数 function dataQuery() { var strFun = "testCallBack"; var strParam = "param"; //Create the function var fn = window[strFun]; //Call the function fn(strParam); } function testCallBack(str) { alert(str); } demo2. 模拟spr…
原文:LeapMotion Demo2 官方doc有四个手势,最近尝试实现对握拳的识别,并能在我的程序界面上体现出来. 调试过程较为繁琐,幸好最终效果还差强人意! 首先看看我的效果图: 该图实时显示我握拳.松开的过程. 部分问题解决还是比较痛苦的. 我尝试了多种方式,但过程有时候比结果其实更重要,幸好LeapMotion的API 识别出的数据比较完善. Tip One: 计算弯曲角度. 1. measure the distance between a finge…
1. Keras Demo2 前节的Keras Demo代码: import numpy as np from keras.models import Sequential from keras.layers.core import Dense,Dropout,Activation from keras.optimizers import SGD,Adam from keras.utils import np_utils from keras.datasets import mnist def…
新建一个空的Web项目,名称JsonServer,该网页实现Ajax数据请求和响应. 添加Newtonsoft.Json.dll的Dll引用,添加JQuery API文件,目录结构如下: 新建一个Person类 using System; using System.Collections.Generic; using System.Linq; using System.Web; /// <summary> ///Person 的摘要说明 /// </summary> /// <…