11e3a9652a first %!s(int64=8) %!d(string=hace) años padEnd.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años padStart.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años parseInt.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años partial.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años partialRight.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años partition.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años pick.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años pickBy.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años plant.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años property.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años propertyOf.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años pull.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años pullAll.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años pullAllBy.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años pullAllWith.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años pullAt.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años random.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años range.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años rangeRight.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años rearg.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años reduce.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años reduceRight.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años reject.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años remove.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años repeat.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años replace.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años rest.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años result.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años reverse.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años round.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años sample.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años sampleSize.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años seq.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años set.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años setWith.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años shuffle.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años size.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años slice.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años snakeCase.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años some.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años sortBy.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años sortedIndex.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años sortedIndexBy.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años sortedIndexOf.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años sortedLastIndex.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años sortedLastIndexBy.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años sortedLastIndexOf.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años sortedUniq.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años sortedUniqBy.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años split.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años spread.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años startCase.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años startsWith.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años string.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años stubArray.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años stubFalse.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años stubObject.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años stubString.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años stubTrue.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años subtract.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años sum.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años sumBy.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años tail.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años take.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años takeRight.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años takeRightWhile.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años takeWhile.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años tap.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años template.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años templateSettings.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años throttle.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años thru.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años times.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años toArray.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años toFinite.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años toInteger.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años toIterator.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años toJSON.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años toLength.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años toLower.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años toNumber.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años toPairs.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años toPairsIn.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años toPath.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años toPlainObject.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años toSafeInteger.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años toString.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años toUpper.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años transform.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años trim.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años trimEnd.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años trimStart.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años truncate.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años unary.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años unescape.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años union.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años unionBy.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años unionWith.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años uniq.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años uniqBy.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años uniqWith.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años uniqueId.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años unset.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años unzip.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años unzipWith.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años update.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años updateWith.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años upperCase.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años upperFirst.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años util.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años value.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años valueOf.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años values.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años valuesIn.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años without.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años words.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años wrap.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años wrapperAt.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años wrapperChain.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años wrapperLodash.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años wrapperReverse.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años wrapperValue.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años xor.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años xorBy.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años xorWith.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años zip.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años zipObject.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años zipObjectDeep.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años zipWith.js 11e3a9652a first %!s(int64=8) %!d(string=hace) años

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

Нет описания

basic.html 8.8KB

    {% 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"> <link href="//cdnjs.cloudflare.com/ajax/libs/flexslider/2.6.3/flexslider.min.css" rel="stylesheet"> <link href="//res.wx.qq.com/open/libs/weui/0.4.3/weui.min.css" rel="stylesheet" type="text/css" /> <link href="{% static 'page/css/flexslider.ext.css' %}" rel="stylesheet" type="text/css" /> <link href="{% static 'page/css/weui.ext.css' %}" rel="stylesheet" type="text/css" /> {% 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 %} {% block tohomehtml %} <div class="tohome"> <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAeCAMAAABzP0xhAAAAS1BMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////+DmQsHAAAAGHRSTlMAoHDw+q0VCufg187DuI+OgGJUSDwyKCBlxSbJAAAAi0lEQVQ4y+3SuRKEIBBFUaQbcd+X9/9fOpRDjaXQGJnNiW/SiwpkmXpiW6C16Sav4dR5qtlKHMpNbhaCR4vUTIwfnuKNxoWONR1uunB0g4Cxt9EbRDSXVewVoqr9bNYCgmJV3kwQ0fxtRkYCj8oZ8GBQqieHIWByev9DEPjfeisy+mDk6Dy9/kevRR9/MjHbEpIcQAAAAABJRU5ErkJggg=="> <p style="text-align:center;font-size:8px">回首页</p> </div> {% endblock %} </div> {% block somehtml2 %}{% endblock %} <script> window.onerror = function(errorMessage, scriptURI, lineNo, columnNo, error) { // 构建错误对象 var errorObj = { lineNo: lineNo || null, columnNo: columnNo || null, scriptURI: scriptURI || null, errorMessage: errorMessage || null, stack: error && error.stack ? error.stack : null }; // 构建Http请求 if (XMLHttpRequest) { var xhr = new XMLHttpRequest(); xhr.open('post', '/e/report', true); xhr.setRequestHeader('Content-Type', 'application/json'); // 设置请求头 xhr.send(JSON.stringify(errorObj)); // 发送参数 } } </script> {# <script src="//cdnjs.cloudflare.com/ajax/libs/zepto/1.1.6/zepto.min.js"></script>#} <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/flexslider/2.6.3/jquery.flexslider-min.js"></script> {% block script %}{% endblock %} <script> // History 压入本地连接 function pushHistory() { var state = { title: "title", url: "#" }; window.history.pushState(state, "title", "#"); } pushHistory(); // 延时监听 setTimeout(function () { // 监听``返回``、``后退``、``上一页`` window.addEventListener("popstate", function (e) { if (confirm("确认退出") == true) { window.history.back(-1); } else { pushHistory(); } }, false); }, 300); </script> <script> {% block glbjs %}{% endblock %} $(function() { /** 格式化输入字符串**/ //用法: "hello{0}".format('world');返回'hello world' String.prototype.format= function(){ var args = arguments; return this.replace(/\{(\d+)\}/g,function(s,i){ return args[i]; }); } {% block flexsliderjs %} // 轮播图 $('.flexslider').flexslider({ slideshowSpeed: 2000, pauseOnHover: true, controlNav: false, directionNav: false, }); {% endblock %} {% block tohomejs %} // 返回首页 $('.tohome').click(function () { window.location.href = '{{ domain }}/page/nav?{{ params|safe }}' }) {% endblock %} {% block js %}{% endblock %} }); </script> <script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.2.0.js"></script> <script type="text/javascript" src="{% static 'machine/js/jswe-1.0.0.js' %}"></script> <script> {# V.initWxData({#} {# imgUrl: '{{ domain }}{% static 'page/img/logo.jpg' %}',#} {# link: 'http://hpsgift.hphcclub.com/we/ws',#} {# desc: '惠普销售红包系统',#} {# title: '惠普销售红包系统',#} {# timeLine: ''#} {# }, true);#} V.hideOptionMenu(); {% block jswe %}{% endblock %} </script> {% block scriptag %}{% endblock %} </body> </html>