var jzt_url = window.location.hostname; var ishttps = ('https:' == document.location.protocol) ? 'https://': 'http://'; switch (jzt_url) { case 'ijzt.china9.cn': jzt_url = 'zhjzt.china9.cn'; break; case 'jzt_dev_2.china9.cn': jzt_url = 'jzt_dev_1.china9.cn'; break; default : jzt_url = 'zhjzt.china9.cn'; break; } function statistics() { var url = window.location.hostname; if (url != 'jzt_dev_2.china9.cn' && url != 'ijzt.china9.cn') { jquery.post(ishttps + jzt_url + '/api/statistics/submit', {'url': url}, function (e) { }); } } statistics();