5
回答
base64字符串转图片
利用AWS快速构建适用于生产的无服务器应用程序,免费试用12个月>>>   

base64字符转换成图片,ie6不显示

<div id="returnButtonDiv">
输入验证码:<input type="text" class="inputmust" id="checkCode" value=""><img id="imgCode" src="data:image/jpg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAAYAFQDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD12x03Rbjw3od3d6TAv+j2skmxVJdwEdkkKHhwRk8kMMqcgkVpRw+HLfVrx7vT9IisQjO0kkcZjiWNdxkLYCqpXJPXBHOKq6ZaSNDoS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Y5oooAqeB9Lg8P+INfmn1fTLoaj4hudWX7LNuWGCRkK72IABHOcZAx1rs/Fcvh/WXEd1eWd7p88EltexpOrfuWUgn5WDDhm+YHjg9epRQBz1v4b8JaNr+n6npVzYy/ZbVbAbLnzPIs0cMEI3ncBj7xGeOTzWr8QtQ+12Ms3hbUtIl1U27xRvPcI8UBIwJWAVyQu4typBKgHGaKKAOO+Gml/8IzpWm6HdT6AYrFUBksr97pHJO6SR98abQWYnALDkjjAz2t7eW+pPb3dnc26TmFZZY1nQtA5UttOxmUNkN91iM9/4mKKAOE+JVxp8+paWNI+yraRadFEkNqVKQgM2IwF4GBgY4wMUUUUAf/Z"/><br>
求解决方法,最好是不用访问服务器在js生成图片

举报
continent
发帖于1年前 5回/1K+阅
顶部