<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>
<script type="text/javascript">
var arr=[{name:'lx',age:32,sex:'male'},{name:'hzl',age:26,sex:'female'}]
function mod(name,key,value)
{
//AAAAAAAAAAAAA 写这里的代码--------------------------------
}
mod('lx','age',33);
alert(arr[0].age)//BBBBBBBBBBBB 结果是33.
mod('hzl','sex','girl');
alert(arr[1].sex)//CCCCCCCCCCCC 结果是'girl'.
</script>
</body>
</html>
在AAAAAAAAAAAAA处写代码,使得BBBBBBBBBBBB弹出框内容是33、CCCCCCCCCCCC弹出框内容是girl