Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[html] 第299天 如何在页面上显示Emoji表情? #1876

Open
haizhilin2013 opened this issue Feb 8, 2020 · 5 comments
Open

[html] 第299天 如何在页面上显示Emoji表情? #1876

haizhilin2013 opened this issue Feb 8, 2020 · 5 comments
Labels
html html

Comments

@haizhilin2013
Copy link
Collaborator

第299天 如何在页面上显示Emoji表情?

#957

我也要出题

@haizhilin2013 haizhilin2013 added the html html label Feb 8, 2020
@NieShiyi
Copy link

NieShiyi commented Feb 9, 2020

如果客户端发送了一个带条件的GET 请求且该请求已被允许,而文档的内容(自上次访问以来或者根据请求的条件)并没有改变,则服务器应当返回这个304状态码。简单的表达就是:服务端已经执行了GET,但文件未变化。

什么情况下会返回304状态码

客户端是怎么知道这些内容没有更新的呢?其实这并不是客户端的事情,而是你服务器的事情,大家都知道服务器可以设置缓存机制,这个功能是为了提高网站的访问速度,当你发出一个GET请求的时候,服务器执行了get请求,它会从缓存中调用你要访问的内容,这个时候服务器就可以判断这个页面是不是更新过了,如果未更新过那么他会给你返回一个304状态码,告诉浏览器文档没有变,缓存依然有效,你可以调用浏览器本地缓存便可获取资源。

@ZhaoHongzcyh
Copy link

暂时只有两个思路,还望各位大佬指教了哟。
1:通过emoji标签的类型去加载不同的图(这种方式比较low了。但也不失为一种方法)
2:通过字符编码的方式解决

@cxwht
Copy link

cxwht commented Feb 13, 2020

好像得要有utf-8m啥的编码才可以 具体的名字忘记了

@whiter001
Copy link

utf8mb4 (most bytes 4) 这不是mysql数据库得嘛

@zhaofeipeter
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
html html
Projects
None yet
Development

No branches or pull requests

6 participants