This file contains hidden or 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
| { | |
| "code": "SUCCESS", | |
| "msg": "success", | |
| "data": { | |
| "spu": { | |
| "storeId": "1612338733229", | |
| "merchantId": "3300003680", | |
| "spuSeq": "16049720649252607242312760", | |
| "categoryId": "SL201CATE4389073274336870487", | |
| "title": "尺码表", |
This file contains hidden or 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 buf = Buffer.alloc(28) | |
| fs.read(fd, buf, 0, 28, 0, function(err, buf, re) { | |
| console.log(re.toString('hex')) | |
| }) |
This file contains hidden or 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
| async function a() { | |
| await f() | |
| console.log('a') | |
| } | |
| async function f() { | |
| console.log('f') | |
| } | |
| a() |
This file contains hidden or 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
| FROM centos:6.7 | |
| MAINTAINER tomori <otarim.com@gmail.com> | |
| # install php httpd mysql | |
| RUN yum -y update | |
| RUN yum -y install epel-release wget | |
| RUN wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm | |
| RUN wget https://centos6.iuscommunity.org/ius-release.rpm | |
| RUN rpm -Uvh ius-release*.rpm | |
| RUN yum -y update |
This file contains hidden or 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
| // 库存、规格 | |
| // [tree] 树模型 | |
| var tree = [{}] | |
| // [tree] 生成主节点 | |
| var addSpec = function (type) { | |
| var current = [] |
This file contains hidden or 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
| // 库存、规格 | |
| // [tree] 树模型 | |
| var tree = [{}] | |
| // [tree] 生成主节点 | |
| var addSpec = function (type) { | |
| var current = [] |
This file contains hidden or 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
| .directive('as',function($compile){ | |
| return { | |
| restrict: 'E', | |
| // replace: true, | |
| transclude: true, | |
| scope: {}, | |
| require: '?ngModel', | |
| controller: function($scope,$compile){ | |
| }, |
This file contains hidden or 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
| 'use strict' | |
| var T = function() { | |
| } | |
| var as = async function() { | |
| return new Promise(function(resolve, reject) { | |
| setTimeout(function() { | |
| resolve(1000) |
This file contains hidden or 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
| angular.module('ngParser') | |
| .factory('xmlParser', function() { | |
| var parse = function(doc) { | |
| var ret = {} | |
| if (doc.attributes) {; | |
| [].forEach.call(doc.attributes, function(node) { | |
| ret[node.nodeName] = node.value | |
| }) | |
| } | |
| if (doc.childNodes.length) {; |
This file contains hidden or 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 promiseAble = function(fn){ | |
| return new Promise(function(resolve,reject){ | |
| fn(function(err,data){ | |
| if(err){ | |
| reject(err) | |
| }else{ | |
| if (arguments.length > 2) { | |
| data = slice.call(arguments, 1) | |
| } | |
| resolve(data) |
NewerOlder