我目前正在将 PWA 添加到我的新 Angular 项目中。
C:\Users\alan_yu\angular-pwa>http-server -p 8080 -c-1 dist/angular-pwa
Starting up http-server, serving dist/angular-pwa
http-server version: 14.0.0
http-server settings:
CORS: disabled
Cache: -1 seconds
Connection Timeout: 120 seconds
Directory Listings: visible
AutoIndex: visible
Serve GZIP Files: false
Serve Brotli Files: false
Default File Extension: none
Available on:
http://192.168.16.91:8080
http://192.168.56.1:8080
http://192.168.99.1:8080
http://127.0.0.1:8080
Hit CTRL-C to stop the server
Run Code Online (Sandbox Code Playgroud)
但加载网页后,我在控制台中收到错误:
[2021-10-21T06:51:39.582Z] "GET /" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36"
(node:11416) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated …Run Code Online (Sandbox Code Playgroud) I want to create a table have(id,time) and time (timestamp without timezone) without milliseconds.
And I also want to insert the current time per default.
CREATE TABLE ddd (
id serial not null,
time timestamp without time zone default now()
);
Run Code Online (Sandbox Code Playgroud)
我想在当前数据中添加一个变量.
CREATE TABLE test
(
id text NOT NULL,
lat numeric,
lng numeric,
CONSTRAINT test_pkey PRIMARY KEY (id)
)
Run Code Online (Sandbox Code Playgroud)
这是我的表:
id lat lat
ABC-123 12.05481 14.5844
Run Code Online (Sandbox Code Playgroud)
我想让lat添加0.46367并让lng减去0.6899.如何做到这一点?
id lat lat
ABC-123 12.51848 13.8945
Run Code Online (Sandbox Code Playgroud)