layer弹出DIV层 点击里面的事件如何刷新内容
比如点击里面slist(1)没有用  必须关掉再打开内容才能显示出来
<SCRIPT type=text/javascript>
   $(document).on('click', '#ccc', function() {
  layer.open({
  type: 1
  ,content:$("#p1").html()
  ,anim: 'up'
  ,style: 'position:fixed; left:0; bottom:0; width:100%; height:70%; border: none; -webkit-animation-duration: .5s; animation-duration: .5s;'
});
   });function slist(n) {
jQuery.get("index.php/ajax/"+n,function (result){
 $("#ttt").html(result);
})
};
</SCRIPT>
<div id=ccc>
<DIV id=p1 style="display:none">
<UL>
<LI id=1_list onclick=slist(1);>1</LI>
<LI id=2_list onclick=slist(2);>2 </LI>
</UL>
<div id=ttt>点击slist内容显示在这里</div>
</div>