判断https

判断https
  1. <script>
  2. if(window.location.protocol=='https:'){
  3. window.location.href='http://e.abchina.com/hn/';
  4. }
  5. </script>