一、问题
今天写了一个H5 的小demo,然后在浏览器中运行时就报了这个错误。
Access to script at ‘file:///D://test.js’ from origin ‘null’ has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrom
组件版本关系
Spring Cloud Alibaba Version
Sentinel Version
Nacos Version
RocketMQ Version
Dubbo Version
Seata Version
2.2.6.RELEASE
1.8.1
1.4.2
4.4.0
2.7.8
1.3.0
2021.1 or 2.2.5.RELEASE or 2.1.4.RELEASE or 2.0.4.RELEASE
1.8.0
1.4.1
LCD屏幕
简介
屏幕的分辨率是:800480,即屏幕是由800480个像素点组成的。
像素点:可以组成颜色的点!
每个像素点占32bit,由A R G B组成,各占8各bit
像素点
A(透明度)
R(red)
G(green)
B(blue)
color
00
ff
00
00
unsigned int color = 0x00ff0000;
这种模式使得我们可以把颜色数量化 。
操作:打开屏幕
屏幕的路径:“/dev/fb0”
int lcd_fd;