Skip to content

Instantly share code, notes, and snippets.

title description
YAML Front Matter
A very simple way to add structured data to a page.

Editor.md

hhh

@iHaPBoy
iHaPBoy / moveEnd.js
Created March 6, 2017 02:40
JavaScript 移动光标到文本末尾
function moveEnd(obj) {
obj.focus();
var len = obj.value.length;
if (document.selection) {
var sel = obj.createTextRange();
sel.moveStart('character', len);
sel.collapse();
sel.select();
} else if (typeof obj.selectionStart == 'number' && typeof obj.selectionEnd == 'number') {
obj.selectionStart = obj.selectionEnd = len;

#Git 基本操作

##配置个人信息

git config --global user.name XXX
git config --global user.email XXX@xxx.com

##从服务器克隆下来