브 라 우 저가 서버 에 요청 하 는 일반적인 방식
5928 단어 D_자바 웹 단계#D2_JavaScript자바 script
<a href="http://localhost:8080/oa/save?username=zhangsan&password=123"> a>
<html>
<head>
<meta charset="utf-8">
<title> URLtitle>
head>
<body>
<script type="text/javascript">
function goBaidu(){
//var locationObj = window.location;
//locationObj.href = "http://www.baidu.com";
// window.location.href = "http://www.jd.com";
// window.location = "http://www.126.com";
//document.location.href = "http://www.sina.com.cn";
document.location = "http://www.tmall.com";
}
script>
<input type="button" value=" " onclick="goBaidu();"/>
<input type="button" value="baidu" onclick="window.open('http://www.baidu.com');" />
body>
html>
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Git에서 개발 환경을 정리해 보았습니다.로컬에 작업 디렉토리 만들기 mkdir [ワーキングディレクトリ名] 작업 디렉토리로 이동 cd [ワーキングディレクトリ名] 작업 디렉토리 초기화 git init git로 연결할 원격 리포지토리를 만듭니다. 이 때 REA...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.