11e3a9652a first 8 lat temu isMatchWith.js 11e3a9652a first 8 lat temu isNaN.js 11e3a9652a first 8 lat temu isNative.js 11e3a9652a first 8 lat temu isNil.js 11e3a9652a first 8 lat temu isNull.js 11e3a9652a first 8 lat temu isNumber.js 11e3a9652a first 8 lat temu isObject.js 11e3a9652a first 8 lat temu isObjectLike.js 11e3a9652a first 8 lat temu isPlainObject.js 11e3a9652a first 8 lat temu isRegExp.js 11e3a9652a first 8 lat temu isSafeInteger.js 11e3a9652a first 8 lat temu isSet.js 11e3a9652a first 8 lat temu isString.js 11e3a9652a first 8 lat temu isSymbol.js 11e3a9652a first 8 lat temu isTypedArray.js 11e3a9652a first 8 lat temu isUndefined.js 11e3a9652a first 8 lat temu isWeakMap.js 11e3a9652a first 8 lat temu isWeakSet.js 11e3a9652a first 8 lat temu iteratee.js 11e3a9652a first 8 lat temu join.js 11e3a9652a first 8 lat temu kebabCase.js 11e3a9652a first 8 lat temu keyBy.js 11e3a9652a first 8 lat temu keys.js 11e3a9652a first 8 lat temu keysIn.js 11e3a9652a first 8 lat temu lang.js 11e3a9652a first 8 lat temu last.js 11e3a9652a first 8 lat temu lastIndexOf.js 11e3a9652a first 8 lat temu lodash.js 11e3a9652a first 8 lat temu lodash.min.js 11e3a9652a first 8 lat temu lowerCase.js 11e3a9652a first 8 lat temu lowerFirst.js 11e3a9652a first 8 lat temu lt.js 11e3a9652a first 8 lat temu lte.js 11e3a9652a first 8 lat temu map.js 11e3a9652a first 8 lat temu mapKeys.js 11e3a9652a first 8 lat temu mapValues.js 11e3a9652a first 8 lat temu matches.js 11e3a9652a first 8 lat temu matchesProperty.js 11e3a9652a first 8 lat temu math.js 11e3a9652a first 8 lat temu max.js 11e3a9652a first 8 lat temu maxBy.js 11e3a9652a first 8 lat temu mean.js 11e3a9652a first 8 lat temu meanBy.js 11e3a9652a first 8 lat temu memoize.js 11e3a9652a first 8 lat temu merge.js 11e3a9652a first 8 lat temu mergeWith.js 11e3a9652a first 8 lat temu method.js 11e3a9652a first 8 lat temu methodOf.js 11e3a9652a first 8 lat temu min.js 11e3a9652a first 8 lat temu minBy.js 11e3a9652a first 8 lat temu mixin.js 11e3a9652a first 8 lat temu multiply.js 11e3a9652a first 8 lat temu negate.js 11e3a9652a first 8 lat temu next.js 11e3a9652a first 8 lat temu noop.js 11e3a9652a first 8 lat temu now.js 11e3a9652a first 8 lat temu nth.js 11e3a9652a first 8 lat temu nthArg.js 11e3a9652a first 8 lat temu number.js 11e3a9652a first 8 lat temu object.js 11e3a9652a first 8 lat temu omit.js 11e3a9652a first 8 lat temu omitBy.js 11e3a9652a first 8 lat temu once.js 11e3a9652a first 8 lat temu orderBy.js 11e3a9652a first 8 lat temu over.js 11e3a9652a first 8 lat temu overArgs.js 11e3a9652a first 8 lat temu overEvery.js 11e3a9652a first 8 lat temu overSome.js 11e3a9652a first 8 lat temu package.json 11e3a9652a first 8 lat temu pad.js 11e3a9652a first 8 lat temu padEnd.js 11e3a9652a first 8 lat temu padStart.js 11e3a9652a first 8 lat temu parseInt.js 11e3a9652a first 8 lat temu partial.js 11e3a9652a first 8 lat temu partialRight.js 11e3a9652a first 8 lat temu partition.js 11e3a9652a first 8 lat temu pick.js 11e3a9652a first 8 lat temu pickBy.js 11e3a9652a first 8 lat temu plant.js 11e3a9652a first 8 lat temu property.js 11e3a9652a first 8 lat temu propertyOf.js 11e3a9652a first 8 lat temu pull.js 11e3a9652a first 8 lat temu pullAll.js 11e3a9652a first 8 lat temu pullAllBy.js 11e3a9652a first 8 lat temu pullAllWith.js 11e3a9652a first 8 lat temu pullAt.js 11e3a9652a first 8 lat temu random.js 11e3a9652a first 8 lat temu range.js 11e3a9652a first 8 lat temu rangeRight.js 11e3a9652a first 8 lat temu rearg.js 11e3a9652a first 8 lat temu reduce.js 11e3a9652a first 8 lat temu reduceRight.js 11e3a9652a first 8 lat temu reject.js 11e3a9652a first 8 lat temu remove.js 11e3a9652a first 8 lat temu repeat.js 11e3a9652a first 8 lat temu replace.js 11e3a9652a first 8 lat temu rest.js 11e3a9652a first 8 lat temu result.js 11e3a9652a first 8 lat temu reverse.js 11e3a9652a first 8 lat temu round.js 11e3a9652a first 8 lat temu sample.js 11e3a9652a first 8 lat temu sampleSize.js 11e3a9652a first 8 lat temu seq.js 11e3a9652a first 8 lat temu set.js 11e3a9652a first 8 lat temu setWith.js 11e3a9652a first 8 lat temu shuffle.js 11e3a9652a first 8 lat temu size.js 11e3a9652a first 8 lat temu slice.js 11e3a9652a first 8 lat temu snakeCase.js 11e3a9652a first 8 lat temu some.js 11e3a9652a first 8 lat temu sortBy.js 11e3a9652a first 8 lat temu sortedIndex.js 11e3a9652a first 8 lat temu sortedIndexBy.js 11e3a9652a first 8 lat temu sortedIndexOf.js 11e3a9652a first 8 lat temu sortedLastIndex.js 11e3a9652a first 8 lat temu sortedLastIndexBy.js 11e3a9652a first 8 lat temu sortedLastIndexOf.js 11e3a9652a first 8 lat temu sortedUniq.js 11e3a9652a first 8 lat temu sortedUniqBy.js 11e3a9652a first 8 lat temu split.js 11e3a9652a first 8 lat temu spread.js 11e3a9652a first 8 lat temu startCase.js 11e3a9652a first 8 lat temu startsWith.js 11e3a9652a first 8 lat temu string.js 11e3a9652a first 8 lat temu stubArray.js 11e3a9652a first 8 lat temu stubFalse.js 11e3a9652a first 8 lat temu stubObject.js 11e3a9652a first 8 lat temu stubString.js 11e3a9652a first 8 lat temu stubTrue.js 11e3a9652a first 8 lat temu subtract.js 11e3a9652a first 8 lat temu sum.js 11e3a9652a first 8 lat temu sumBy.js 11e3a9652a first 8 lat temu tail.js 11e3a9652a first 8 lat temu take.js 11e3a9652a first 8 lat temu takeRight.js 11e3a9652a first 8 lat temu takeRightWhile.js 11e3a9652a first 8 lat temu takeWhile.js 11e3a9652a first 8 lat temu tap.js 11e3a9652a first 8 lat temu template.js 11e3a9652a first 8 lat temu templateSettings.js 11e3a9652a first 8 lat temu throttle.js 11e3a9652a first 8 lat temu thru.js 11e3a9652a first 8 lat temu times.js 11e3a9652a first 8 lat temu toArray.js 11e3a9652a first 8 lat temu toFinite.js 11e3a9652a first 8 lat temu toInteger.js 11e3a9652a first 8 lat temu toIterator.js 11e3a9652a first 8 lat temu toJSON.js 11e3a9652a first 8 lat temu toLength.js 11e3a9652a first 8 lat temu toLower.js 11e3a9652a first 8 lat temu toNumber.js 11e3a9652a first 8 lat temu toPairs.js 11e3a9652a first 8 lat temu toPairsIn.js 11e3a9652a first 8 lat temu toPath.js 11e3a9652a first 8 lat temu toPlainObject.js 11e3a9652a first 8 lat temu toSafeInteger.js 11e3a9652a first 8 lat temu toString.js 11e3a9652a first 8 lat temu toUpper.js 11e3a9652a first 8 lat temu transform.js 11e3a9652a first 8 lat temu trim.js 11e3a9652a first 8 lat temu trimEnd.js 11e3a9652a first 8 lat temu trimStart.js 11e3a9652a first 8 lat temu truncate.js 11e3a9652a first 8 lat temu unary.js 11e3a9652a first 8 lat temu unescape.js 11e3a9652a first 8 lat temu union.js 11e3a9652a first 8 lat temu unionBy.js 11e3a9652a first 8 lat temu unionWith.js 11e3a9652a first 8 lat temu uniq.js 11e3a9652a first 8 lat temu uniqBy.js 11e3a9652a first 8 lat temu uniqWith.js 11e3a9652a first 8 lat temu uniqueId.js 11e3a9652a first 8 lat temu unset.js 11e3a9652a first 8 lat temu unzip.js 11e3a9652a first 8 lat temu unzipWith.js 11e3a9652a first 8 lat temu update.js 11e3a9652a first 8 lat temu updateWith.js 11e3a9652a first 8 lat temu upperCase.js 11e3a9652a first 8 lat temu upperFirst.js 11e3a9652a first 8 lat temu util.js 11e3a9652a first 8 lat temu value.js 11e3a9652a first 8 lat temu valueOf.js 11e3a9652a first 8 lat temu values.js 11e3a9652a first 8 lat temu valuesIn.js 11e3a9652a first 8 lat temu without.js 11e3a9652a first 8 lat temu words.js 11e3a9652a first 8 lat temu wrap.js 11e3a9652a first 8 lat temu wrapperAt.js 11e3a9652a first 8 lat temu wrapperChain.js 11e3a9652a first 8 lat temu wrapperLodash.js 11e3a9652a first 8 lat temu wrapperReverse.js 11e3a9652a first 8 lat temu wrapperValue.js 11e3a9652a first 8 lat temu xor.js 11e3a9652a first 8 lat temu xorBy.js 11e3a9652a first 8 lat temu xorWith.js 11e3a9652a first 8 lat temu zip.js 11e3a9652a first 8 lat temu zipObject.js 11e3a9652a first 8 lat temu zipObjectDeep.js 11e3a9652a first 8 lat temu zipWith.js 11e3a9652a first 8 lat temu

README.md

lodash v4.17.5

The Lodash library exported as Node.js modules.

Installation

Using npm:

$ npm i -g npm
$ npm i --save lodash

In Node.js:

// Load the full build.
var _ = require('lodash');
// Load the core build.
var _ = require('lodash/core');
// Load the FP build for immutable auto-curried iteratee-first data-last methods.
var fp = require('lodash/fp');

// Load method categories.
var array = require('lodash/array');
var object = require('lodash/fp/object');

// Cherry-pick methods for smaller browserify/rollup/webpack bundles.
var at = require('lodash/at');
var curryN = require('lodash/fp/curryN');

See the package source for more details.

Note:
Install n_ for Lodash use in the Node.js < 6 REPL.

Support

Tested in Chrome 63-64, Firefox 57-58, IE 11, Edge 14, Safari 10-11, Node.js 4-9, & PhantomJS 2.1.1.
Automated browser & CI test runs are available.

kodo - Gogs: Go Git Service

Brak opisu

basic_pure.html 4.4KB

    {% load staticfiles %} <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="format-detection" content="telephone=no,email=no,address=no"> <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no"> <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Expires" content="0" /> <title>{% block title %}{% endblock %}</title> <link href="//cdnjs.cloudflare.com/ajax/libs/pure/0.6.2/pure-min.css" rel="stylesheet"> {% block link %}{% endblock %} <style> body { font-family: Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif !important; background: #fff; } img { pointer-events: none; } .clickable { pointer-events: auto; } /* Input 自动填充后,移除 Chrome 默认黄色 */ input:-webkit-autofill { box-shadow: 0 0 0 1000px white inset !important; } .container { padding-bottom: 45px; } .text-center { text-align: center; } .empty { color: #999; padding: .9375rem 0; font-size: .625rem; } .text_ellipsis { overflow:hidden; white-space:nowrap; text-overflow: ellipsis; } .fl { float: left; } .fr { float: right; } .clearfix { zoom: 1; } .clearfix:after { content: "\200B"; display: block; height: 0; clear: both; } </style> {% block tohomecss %} <style> .tohome { width: 40px; height: 40px; background-color: rgba(139, 139, 139, 0.7); position: fixed; right: 10px; bottom: 20px; border-radius: 9999px; border-top-left-radius: 9999px; border-top-right-radius: 9999px; border-bottom-left-radius: 9999px; border-bottom-right-radius: 9999px; z-index: 99999999; } .tohome img { display: block; width: 18px; height: 13px; margin: 6px auto 2px; } .tohome p { color: #ffffff; } </style> {% endblock %} {% block css %}{% endblock %} <script> {% block rem %} //这段js的最后面有两个参数记得要设置,一个为设计稿实际宽度,一个为制作稿最大宽度,例如设计稿为750,最大宽度为750,则为(750,750) !function(e,t){function n(){var n=l.getBoundingClientRect().width;t=t||540,n>t&&(n=t);var i=100*n/e;r.innerHTML="html{font-size:"+i+"px;}"}var i,d=document,o=window,l=d.documentElement,r=document.createElement("style");if(l.firstElementChild)l.firstElementChild.appendChild(r);else{var a=d.createElement("div");a.appendChild(r),d.write(a.innerHTML),a=null}n(),o.addEventListener("resize",function(){clearTimeout(i),i=setTimeout(n,300)},!1),o.addEventListener("pageshow",function(e){e.persisted&&(clearTimeout(i),i=setTimeout(n,300))},!1),"complete"===d.readyState?d.body.style.fontSize="16px":d.addEventListener("DOMContentLoaded",function(e){d.body.style.fontSize="16px"},!1)}(750,750); {% endblock %} </script> </head> <body> {% block somehtml %}{% endblock %} <div class="container"> {% block container %}{% endblock %} </div> {% block somehtml2 %}{% endblock %} <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> {% block script %}{% endblock %} <script> {% block glbjs %}{% endblock %} $(function() { {% block js %}{% endblock %} }); </script> </body> </html>