<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script type="text/javascript">
var thePaths = {
basePath: '<%=request.getContextPath()%>'
};
// 自动播放背景音乐
function autoPlay(id) {
var Media = $('#' + id)[0];
Media.src = '<%=request.getContextPath()%>/resources/dist/media/ngc.mp3';
Media.play();
document.addEventListener('WeixinJSBridgeReady', function () {
Media.play();
}, false);
}
</script>