저도 같은 문제가되었다
, 당신에게
<!DOCTYPE html>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 -->
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<title>Hello World</title>
</head>
<body>
<a onclick="navigator.app.loadUrl('yourwebsite.com', { openExternal:true });">Links</a>
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript">
function openURL(urlString){
myURL = encodeURI(urlString);
window.open(myURL, '_blank');
}
</script>
새 프로젝트를 만들어보십시오이 필요하지 않은 것처럼 반드시 index.html을 보이는 만들 페이지에 cordova.js을 포함하고 있습니다 inappbrowser를 포함하도록 도움이 되길 빌어 요.
[내 애플리케이션에서 Android 웹 브라우저에서 URL을 열려면 어떻게해야합니까?] (http://stackoverflow.com/questions/2201917/how-can-i) 안드로이드 웹 브라우저에서 내 응용 프로그램 열기) – Satpal
@Satpal은 그 답을보고있어 주셔서 고맙습니다. 그러나 이해할 수 없습니다. –
''_system ''에있는 배신을 대신하여 "_system"'을 인용 부호로 묶을 것입니다. 'onclick' 이벤트 함수를'''apostrophies로 캡슐화하지만''_system ''의 첫 번째 배신은 캡슐화를 끝냅니다. – benka