var html = '登录|注册'; $(function(){console.log(1) $('#statusLogin').html(html); })