标签:pytho eee 文本 lin check pre 标签 type div
var ptag = $('<p>');
$('#content').attr('class/id/name/href', 'active')
$('#id').html('标签的文本')
$('#input).val('xxxxxxx')
$("div").css({"background-color":"yellow","font-size":"200%"});
var css = {
background-color: '#EEE',
height: '500px',
margin: '10px',
padding: '2px 5px'
};
$("div").css(css);
var ptag = $('p')
$('#id').append(ptag)
<ul >
<li><input type="checkbox" name="friend_name" value="zhangshan">张三</li>
<li><input type="checkbox" name="friend_name" value="lisi">李四</li>
<li><input type="checkbox" name="friend_name" value="python">派神</li>
<li><input type="checkbox" name="friend_name" value="java">加瓦</li>
</ul>
<script>
var friend_name = new Array()
$('input[name="friend_name"]:checked').each(function (i) {
friend_name[i] = $(this).val()
});
</script>
标签:pytho eee 文本 lin check pre 标签 type div
原文地址:https://www.cnblogs.com/sunxiuwen/p/10261188.html