text()/html()/val()

解释:用于DOM操作的jq方法

用法:

$(‘#id’).html();//取值

$(‘#id’).html(‘str’)//赋值

text/val同上。

posted @ 2018-03-20 10:15  wisdomns  Views(125)  Comments(0Edit  收藏  举报