wap手机端解决返回上一页,js

 <input ) {
                            location.href = ref;
                        }
                        else {
                            location.href = history.back(-1);
                        }
                    }
                </script>