📄 hacks5_3.js
字号:
window.onload=function(){ JsBikeBean.getBikeInfo(populate);};function populate(map){ DWRUtil.removeAllOptions("bikes"); addOptionValues("bikes", map);}function addOptionValues(_id,_map){ //handle the return value as a JS object // var jMap = new Function("return "+_map)(); var sel = document.getElementById(_id); var opt = null; if(sel != null){ for(var prop in _map) { opt=document.createElement("option"); opt.setAttribute("value",_map[prop]); opt.appendChild(document.createTextNode(prop)); sel.appendChild(opt); } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -