<div id="add_title_box"><style>.xg-input{width:100%;display:block;font-size:0.34rem;box-sizing:border-box;padding:0.3rem 0.36rem;}</style><div style="max-width:640px;width:100%;margin:0 auto;"><header class="header header-btn">    <a class="xg-back" id="jsaddtitle" href="javascript:;"></a>    <h1 class="xg-title">标题</h1>    <button type="button" id="jsaddtitlebtn" class="xg-btn xg-btn-pill xg-btn-primary fr">保存</button></header><div style="line-height:1.1rem;">&nbsp;</div><main class="xg-main2 wrapper" style="position:relative;max-width:640px;margin:0 auto;">    <div class="xg-container2">        <form action="javascript:;" class="xg-form" onsubmit="return false;">            <input class="xg-input" name="title" id="title" placeholder="说说账号亮点,6-20字">        </form>    </div></main><div class="popmsg2 pop-dialog"></div><script>	$(function() {		var popmsg2 = $('.popmsg2').pop();		var t = $('#comfirm_sell input[name="title"]').val();		if(t)			$('#title').val(t);		$('#jsaddtitle').click(function() {			var p = $('.popwin').fadeOut(200);			setTimeout(function(){p.find('#add_title_box').remove();},210);			return false;		});		$('#title').keyup(function() {			var that = $(this);var val = $.trim(that.val());			if(val.length>=20) {val = val.substr(0,20);that.val(val);popmsg2.msg('标题已达20字');return false;}			return false;		});		$('#jsaddtitlebtn').click(function() {			var val = $.trim($('#title').val());			if(val.length<6) {popmsg2.msg('标题不少于6字');return false;}			if(val.length >20) {popmsg2.msg('标题不能超过20字');return false;}			$('#jssell_title').find('.gray_txt').addClass('xh_selected').text(val);			$('#comfirm_sell input[name="title"]').val(val);			$('#jsaddtitle').click();			return false;		});	});</script></div></div>