var changestatus = "${changeStatus}";//后台传递的status
//获取公告状态select中数据
$.ajax({
type:"post",
url:'/bulletin/bulletinAction!getBulletinStautsSelectOption.do',
datatype: "json",
data: {
},
success:function(data){
var str = data;
$("#status").html(str);
if(changestatus != null && "" != changestatus){
$("#status option").each(function(){
if($(this).val() == changestatus){
$(this).attr("selected",true);
}
});
}
}
});
div中文字的自动换行
<div style='width:98%;clear:both;word-wrap:break-word;'>9999999999999999999999999</div>
width:98%:继承的是父div的宽度。