public void onWindowFocusChanged (boolean hasFocus)
参数hasFocus: the window of this activity has focus.
是指activity是否获取或失去了focus,获得到了该参数为true,否则为false。一般是进入或恢复Actiity时为true,Actvi…
先看一段代码
var x = document.getElementsByName(data);
var i;
for (i = 0; i < x.length; i++) {var value=x[i].id;$.getJSON(ctx + /sys/dict/description, {value: value}, function (data) {var str = <img src="/static/images/toolbox/description.png&…