0

HTML5 のサンプルを iOS Safari で試してみました。

サンプル写真が表示されますが、継続的にロードされ続け、Aviary 編集操作を実行できません。

誰にも解決策がありますか?

以下は、 http: //www.aviary.com/web-documentation の Aviary サイトから直接入手したサンプル コードです。

<!-- 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>
4

3 に答える 3

1

api@aviary.com で Aviary に連絡したところ、今日修正されたバグがあるとのことでした。それは今動作します。

于 2012-05-21T23:39:56.240 に答える
0

念のため...写真に完全な「src」を追加する必要があります。「src='/upload/miPhoto.png'」を使用する代わりに、「src=' http://localhost:8080/project/upload/miPhoto.png '」を使用する必要があります。

于 2016-09-08T22:24:42.617 に答える