你如何在github版本上更改连接的提交?

我想将它更改为之前的提交,因为我之后创建了发布(在一些提交发布0.9之后)
编辑:阅读问题末尾的部分!
我的服务代码:
import { Http, Response, Headers } from "@angular/http";
import { Injectable } from "@angular/core";
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/catch';
import { Observable } from "rxjs";
import { Client } from "./client.model";
@Injectable()
export class ClientService {
private clients: Client[] = [];
constructor(private http: Http){}
addClient(client: Client) {
this.clients.push(client);
const body = JSON.stringify(client);
const headers = new Headers({'Content-Type': 'application/json'});
return this.http.post('http://localhost:3000/client', body, {headers: headers})
.map((response: Response) => response.json())
.catch((error: Response) => Observable.throw(error.json()));
}
getClients() {
return this.clients;
}
deleteClient(client: …Run Code Online (Sandbox Code Playgroud) 如何通过单击按钮来显示和隐藏div(内容)?
这里有一些代码:
<button class="btn btn-default">Text</button>
<div class="div-to-hide">Some content</div>
Run Code Online (Sandbox Code Playgroud) 我目前使用节点js构建服务器端应用程序.为了测试它,我使用Travis,它默认运行npm test.
现在我还要测试依赖项是否正确,从而在Travis中启动应用程序
nodejs app.js
Run Code Online (Sandbox Code Playgroud)
我怎样才能在Travis中执行此任务?
我想在没有动作的情况下使用css (y 按钮,悬停)在y轴上从0到360度连续翻转元素.
有些脚本通过添加一个类来允许它一次,例如:animate.css
其他只需按下按钮(http://desandro.github.io/3dtransforms/docs/card-flip.html)或悬停(http://davidwalsh.name/demo/css-flip.php)
.img:hover {
transform: rotateY(360deg);
transition: transform 10s;
}
Run Code Online (Sandbox Code Playgroud)
那是我到目前为止所尝试的,但它只能工作一次而且仅在悬停时......
你能帮我拿到代码吗?
我想处理数据,这是由trello webhook发出的.有webhook帖子到网站,如site.com/tracker.php
在tracker.php中,我想将数据保存在数据库中.为此,我需要得到一些参数.
这是我收到的代码示例(https://trello.com/docs/gettingstarted/webhooks.html):
{
"action": {
"id":"51f9424bcd6e040f3c002412",
"idMemberCreator":"4fc78a59a885233f4b349bd9",
"data": {
"board": {
"name":"Trello Development",
"id":"4d5ea62fd76aa1136000000c"
},
"card": {
"idShort":1458,
"name":"Webhooks",
"id":"51a79e72dbb7e23c7c003778"
},
"voted":true
},
"type":"voteOnCard",
"date":"2013-07-31T16:58:51.949Z",
"memberCreator": {
"id":"4fc78a59a885233f4b349bd9",
"avatarHash":"2da34d23b5f1ac1a20e2a01157bfa9fe",
"fullName":"Doug Patti",
"initials":"DP",
"username":"doug"
}
},
"model": {
"id":"4d5ea62fd76aa1136000000c",
"name":"Trello Development",
"desc":"Trello board used by the Trello team to track work on Trello. How meta!\n\nThe development of the Trello API is being tracked at https://trello.com/api\n\nThe development of Trello Mobile applications is being tracked at https://trello.com/mobile",
"closed":false,
"idOrganization":"4e1452614e4b8698470000e0", …Run Code Online (Sandbox Code Playgroud) 我怎么能将.col-md-8(http://getbootstrap.com/css/#grid-example-basic)置于bootstrap有效的html中心?
我想每隔一小时调用一次jquery函数.所以11:00,12:00,13:00等
这是功能:
function flipIt() {
$('#flip').addClass('animate pulse');
$('#flip').removeClass('animate pulse').delay(1500);
}
Run Code Online (Sandbox Code Playgroud)
我怎么能每隔一小时打电话一次?
我有一个包含"json时间戳"的字符串(我猜它是这样的,因为这个问题:"正确的"JSON日期格式)
2015-08-11T09:19:25Z
Run Code Online (Sandbox Code Playgroud)
现在我想用PHP将这个字符串转换成这样的东西:
09:19 11.08.2015
Run Code Online (Sandbox Code Playgroud)
我尝试了日期功能,但它没有用.
我想拆分三次字符串.
这是字符串:
21.06.2016;00:30
我的功能看起来像这样:
String[] split = dateV.split(";");
String[] date = split[0].split(".");
String[] time = split[1].split(":");
Run Code Online (Sandbox Code Playgroud)
date [0]毕竟应该包含"21"
所以第一部分很有效.
我的两个字符串是
split[0] = 21.06.2016
split[1] = 00:30
Run Code Online (Sandbox Code Playgroud)
但是当我打电话给split[0].split(".");我的时候
java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
有人可以告诉我为什么吗?
我想<p></p>从我的页面中删除空.这很好用$('p:empty').remove();.但是我的<p>页面上也有一些,看起来像这样(只包含很多空格):
<p>
</p>
Run Code Online (Sandbox Code Playgroud)
不幸的是,它们并不被认为是空洞的.
我该如何删除它们?
我正在升级到Bootstrap 4,并且遇到了一些问题。
如您所见,正确的navbar-collapse元素占用的空间超过了所需的空间:

如何设置元素仅使用所需的宽度,而无需进一步扩展?
这是小提琴:https : //jsfiddle.net/Zoker/ndv0ec54/