取值
|-----------|--------------------------------------------|
| 1
| hljs javascript $('#cowBeer').val()
|
赋值
|-----------|----------------------------------------------------------|
| 1
| hljs javascript $("#cowBeer").attr("value", 666);
|
取值
|-----------|--------------------------------------------|
| 1
| hljs javascript $('#cowBeer').val()
|
赋值
|-----------|----------------------------------------------------------|
| 1
| hljs javascript $("#cowBeer").attr("value", 666);
|