-
首先启动一个Git Bash窗口(非Windows用户直接打开终端)
-
执行:
cd ~/.ssh
如果返回“… No such file or directory”,说明没有生成过SSH Key,直接进入第4步。否则进入第3步备份!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* LoadingView | |
*/ | |
'use strict'; | |
var React = require('react-native'); | |
var { | |
TouchableWithoutFeedback, | |
Animated, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Sample React Native App | |
* https://github.com/facebook/react-native | |
*/ | |
'use strict'; | |
var React = require('react-native'); | |
var ScrollableMixin = require('react-native-scrollable-mixin'); | |
var TimerMixin = require('react-timer-mixin'); | |
var TaoshijieView =require('./TaoshijieView'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tip 1 | |
git 保存的信息是每次变动 文件名称 内容 读写属性的改变都视为变动 比如: | |
vim test1.txt 添加1行 line1 | |
git add | |
vim test1.txt 再添加1行 line 2 | |
git commit -m "add file test1" | |
此时本地仓库保存到 test1.txt 的内容 是 line 1 只有1行 因为第二次修改的变动 没有 git add | |
tip 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Mogujie Mobile Demo Template</title> | |
<!-- | |
width=device-width:让文档的宽度与设备的宽度保持一致,且文档最大的宽度比例是1.0 | |
initial-scale=1:初始的缩放比例 | |
maximum-scale=1:允许用户缩放到的最大比例(对应还有个minimum-scale) | |
user-scalable=no:不允许用户手动缩放 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.top-shadow { | |
width: 200px; | |
height: 200px; | |
} | |
.top-shadow:after { | |
content: ""; | |
width: 100%; | |
height: 8px; | |
display: block; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*建立数组*/ | |
var Obj = new Array(); | |
var Obj = new Array(size); | |
var Obj = new Array(element0, element1, ..., elementn); | |
/*遍历数组*/ | |
for (var i in Obj) | |
{ | |
console.log(Obj[i]+","); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--HTML--> | |
<div class="flex-container"> | |
<div class="flex-item">I'm centered!</div> | |
</div> | |
<!--CSS--> | |
<style> | |
.flex-container { | |
display: -webkit-flex; | |
display: flex; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Flexbox 设置为伸缩容器(包括伸缩容器和伸缩项目) | |
* (flex /inline-flex ) | |
*/ | |
display: -webkit-flex; | |
display: flex; | |
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String.prototype.Trim = function() | |
{ | |
return this.replace(/(^\s*)|(\s*$)/g, ""); | |
} | |
var str = ' abcdefg '; | |
console.log(str.trim()); |
NewerOlder