在PHP页面使用 echo "document.write('$count');" 输出  注意引号
在其他页面使用 <script src="<PHP文件名>"></script>