在手机浏览器中实现js下载图片保存在手机存储上,急求大神解答!

在手机浏览器中实现js下载图片保存在手机存储上,急求大神解答!,第1张

1、手机的内存满了浏览器不能使用了。

2、浏览器与手机的兼容性问题导致的重新登陆一下或是卸载浏览器重新安装低版本的以适应手机的 *** 作系统。

3、一些其他问题建议拨打微信客服电话或是联系在线客服寻求帮助。

4、终极解决办法手机备份之后恢复出厂设置不到万不得已建议不要使用。

使用cookie即可。

<!DOCTYPE HTML>

<html lang="en-US">

<head>

<meta charset="UTF-8">

<meta name="keywords" content="白菜编辑部">

<title>白菜编辑部</title>

<style type="text/css">

</style>

<script type="text/javascript">

    function readCookie (name)

    {

        var cookieValue = ""

        var search = name + "="

        if (document.cookie.length > 0)

        {

            offset = document.cookie.indexOf (search)

            if (offset != -1)

            {

                offset += search.length

                end = document.cookie.indexOf ("", offset)

                if (end == -1)

                    end = document.cookie.length

                cookieValue = unescape (document.cookie.substring (offset, end))

            }

        }

        return cookieValue

    }

    function writeCookie (name, value, hours)

    {

        var expire = ""

        if (hours != null)

        {

            expire = new Date ((new Date ()).getTime () + hours * 3600000)

            expire = " expires=" + expire.toGMTString ()

        }

        document.cookie = name + "=" + escape (value) + expire

    }

     

    writeCookie ("myCookie", "my name", 24)

    alert (readCookie ("myCookie"))

</script>

</head>

<body>

</body>

</html>


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/sjk/6755678.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-03-27
下一篇 2023-03-27

发表评论

登录后才能评论

评论列表(0条)

保存