iOS Safari에서 작동하지 않는 조류 유사일 HTM5L 샘플
-
11-12-2019 - |
문제
샘플 HTML5를 가져 와서 IOS Safari에서 시도했습니다.
샘플 사진이 나타나지만 계속로드를 계속 유지하면 조제 편집 작업을 수행 할 수 없습니다.
아무도 해결책을 가지고 있습니까?
여기 http://www.aviary.com/web-문서
<!-- Load Feather code -->
<script type="text/javascript" src="http://feather.aviary.com/js/feather.js"></script>
<!-- Instantiate Feather -->
<script type="text/javascript">
var featherEditor = new Aviary.Feather({
apiKey: '12345678',
apiVersion: 2,
tools: 'all',
appendTo: 'injection_site',
onSave: function(imageID, newURL) {
var img = document.getElementById(imageID);
img.src = newURL;
}
});
function launchEditor(id, src) {
featherEditor.launch({
image: id,
url: src
});
return false;
}
</script>
<div id="injection_site"></div>
<img id="image1" src="http://images.aviary.com/imagesv5/feather_default.jpg"/>
<!-- Add an edit button, passing the HTML id of the image and the public URL ot the image -->
<p><input type="image" src="http://advanced.aviary.com/images/feather/edit-photo.png" value="Edit photo" onclick="return launchEditor('image1', 'http://images.aviary.com/imagesv5/feather_default.jpg');" /></p>
. 해결책
Api@aviary.com에서 조류 사육장에 연락하고 오늘날 그들이 수정 된 버그가 있음을 언급했습니다.지금 작동합니다.
다른 팁
라이브 서버 에이 코드를 넣어야합니다. 로컬은 여기에서 작동하지 않습니다.조류 웹 문서는 "수상 대사를 위해 서버의 위치를 설정하여 서버 간 HTTP 포스트"를 설정합니다.
방금 ... 사진에 완전한 'src'를 추가해야합니다. 대신 "src= '/ upload / miphoto.png'을 사용하여"src= ' http를 사용해야합니다.: // localhost : 8080 / project / upload / miphoto.png " 희망이 도움이됩니다!
제휴하지 않습니다 StackOverflow