必须要先进行导入,然后进行操作: <mce:script type="text/javascript" src="../includes/jquery.min.js" mce_src="includes/jquery.min.js"></mce:script> <mce:script type="text/javascript"><!-- function redirect($url){ window.location = $url; } function selectAll(){ alert("test"); } // --></mce:script> 否则就会出错