小编jar*_*ad7的帖子

CSS背景图片无法加载

我已经按照所有的教程进行了操作,这些教程都说出来.我在我的css样式表中指定了body中的背景,但页面只显示一个空白的白色背景.Image与.html和.css页面位于同一目录中.教程说明了这一点

<body background="image.jpeg">
Run Code Online (Sandbox Code Playgroud)

不推荐使用,所以我在css中使用

body {background: url('image.jpeg');}
Run Code Online (Sandbox Code Playgroud)

没有成功.这是整个css样式表:

body 
{
background-image: url('nickcage.jpg');
padding-left: 11em;
padding-right: 20em;
font-family:
Georgia, "Times New Roman",
Times, serif; 
color: red;        
}
Run Code Online (Sandbox Code Playgroud)

html css background image

18
推荐指数
5
解决办法
16万
查看次数

Jenkins 中带有个人访问令牌的 Git 克隆永远空闲

我们有一个企业github运行在公司网络之外的远程github服务器上,需要使用https代理来克隆。我们不允许使用密码身份验证,因此要么使用 ssh(由于代理问题而无法使用)或 PAT。

在我的命令行上,命令

git clone https://user:token@github.exampleco.com/org/repo.git
Run Code Online (Sandbox Code Playgroud)

克隆存储库没有问题,大约需要 5-10 秒。

在 Jenkins 中,控制台输出显示“克隆到目录名称”,然后有一个旋转轮无休止地旋转,并且永远无法解决。

我在执行 shell 脚本中运行它,因为 github 插件运行一些命令,显然仍然想要进行密码身份验证,即使我向它提供没有凭据的 PAT 版本的 url,并且我没有看到 PAT 授权选项在添加凭据模式中。

为了澄清给 Jenkins 插件的 url 是:

https://user:token@github.exampleco.com/org/repo.git
Run Code Online (Sandbox Code Playgroud)

我得到这样的输出:

No credentials specified
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://user:token@github.exampleco.com/org/repo.git # timeout=10
Fetching upstream changes from https://user@github.exampleco.com/org/repo.git
 > git --version # timeout=10
Setting http proxy: corporateproxy.com:8080
 > git fetch --tags --progress https://user@github.exampleco.com/org/repo.git +refs/heads/*:refs/remotes/origin/*
ERROR: Error fetching remote repo 'origin' …
Run Code Online (Sandbox Code Playgroud)

git jenkins

2
推荐指数
1
解决办法
2万
查看次数

Date.getTime不是节点中的函数?

我在终端上运行节点shell.这是输出:

> new Date("2018-06-03T02:49:50.307Z");
2018-06-03T02:49:50.307Z
> Date("2018-06-03T02:49:50.307Z").getTime();
TypeError: Date(...).getTime is not a function
> var d = Date("2018-06-03T02:49:50.307Z");
undefined
> d
'Wed Sep 19 2018 11:17:07 GMT-0400 (EDT)'
> d.getTime();
TypeError: d.getTime is not a function
> d.getTime;
undefined
> d.getDate();
TypeError: d.getDate is not a function
> d
'Wed Sep 19 2018 11:17:07 GMT-0400 (EDT)'
>
Run Code Online (Sandbox Code Playgroud)

如您所见,getDate和getTime都不是Date对象的函数.但是其他Stackoverflow Answers似乎暗示它们应该是,并且在javascript文档上执行CTRL + F 显示该函数预计存在.

此时的格式是Azure数据库存储日期时间的方式.看起来Date对象识别格式,因为打印d返回日期.

javascript datetime node.js

-1
推荐指数
1
解决办法
1979
查看次数

标签 统计

background ×1

css ×1

datetime ×1

git ×1

html ×1

image ×1

javascript ×1

jenkins ×1

node.js ×1