<NME> utils.js
<BEF> ADDFILE
<MSG> Merge pull request #13 from dlhandsome/lab

Lab
<DFF> @@ -0,0 +1,28 @@
+/**
+ * Created by sail on 2017/6/11.
+ */
+let	device = void 0
+const TOUCH_STATE = ['touchstarted', 'touchmoved', 'touchended']
+
+export function firstLetterUpper(str) {
+	return str.charAt(0).toUpperCase() + str.slice(1)
+}
+
+export function setTouchState(instance, ...arg) {
+	TOUCH_STATE.forEach((key, i) => {
+		if (arg[i] !== undefined) {
+			instance[key] = arg[i]
+		}
+	})
+}
+
+export function validator(instance, o) {
+	Object.defineProperties(instance, o)
+}
+
+export function	getDevice() {
+	if (!device) {
+		device = wx.getSystemInfoSync()
+	}
+	return device
+}
\ No newline at end of file

Merge pull request #13 from dlhandsome/lab