网页头部的声明应该是用 lang="zh" 还是 lang="zh-cn"? 添加评论 查看全部 12 个回答 skydiver ,程序员 5 人赞同 两种写法都可以,看你的需求选择.参考 W3C: Language information and text direction: Briefly, language codes consist of a primary code and a possibly empty series of subcode
最标准的写法,就是为每一个AdapterView的子View新建一个对应的ViewHolder,同时声明为prtivate final static.ViewHolder类中定义各种成员变量. public final static class ViewHolder{ ImageView iv; TextView text; Button btn; } 在适配器的getView()方法中我们一般会这么写: public View getView(int position, View conver
设置cookie 三个参数分别代表:键,值,过期时间,这个封装方法可以完成cookie的储存 以及cookie的删除(过期时间设为赋值) function setCookie(cname,cvalue,exdays){ var d = new Date(); d.setTime(d.getTime()+(exdays*24*60*60*1000)); var expires = "expires="+d.toGMTString(); document.cookie = cname+