var text = document.getElementById('text');
function show(name){
// 第一种操作属性的方法
// text.value = '1111111111';
// 第二种操作属性的方法([] 方便传参) **除了变量和参数,其它都是要加“”的
text[name] = '111111111';
}
var text = document.getElementById('text');
function show(name){
// 第一种操作属性的方法
// text.value = '1111111111';
// 第二种操作属性的方法([] 方便传参) **除了变量和参数,其它都是要加“”的
text[name] = '111111111';
}