layui数据uri_数据URI

layui数据uri

We're all familiar with traditional URI protocols like https, http, ftp, and file, but data URIs have become a large part of our online strategy. We can use them to display images, the Mac camera and webcams, and more. But what if we simply want to use a data URI to convey basic data?

我们都熟悉传统的URI协议,例如https,http,ftp和file,但是数据URI已成为我们在线策略的重要组成部分。 我们可以使用它们来显示图像Mac摄像机和网络摄像头等。 但是,如果我们只是想使用数据URI传达基本数据怎么办?

Typing a data URI shouldn't be difficult, and it isn't. As someone that works on the Firefox DevTools Debugger, I'm often typing out data URIs to illustrate problems. The format is:

键入数据URI应该并不困难,也并非如此。 作为使用Firefox DevTools Debugger的人,我经常输入数据URI来说明问题。 格式为:

data:text/html,<body class="blah"></body>

We're all so ingrained to use protocol://subdomain.domain.tld addresses that data URIs look foreign...but they require the least amount of resources to express content!

我们都非常protocol://subdomain.domain.tld使用protocol://subdomain.domain.tld地址,以致数据URI看起来很陌生...但是它们需要最少的资源来表示内容!

翻译自: https://davidwalsh.name/data-uris

layui数据uri

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值