你可以用$(document).ready(function(){ $('#div').text('<#include "uav/page/center.html" encoding="utf-8"/>');});或者把你的这段js代码放到页面的末尾.都是等页面加载完再加载这段!