MCPcopy
hub / github.com/layui/layui / pushData

Function pushData

src/modules/layer.js:2043–2058  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2041 // 页面直接获取
2042 var parent = $(options.photos),
2043 pushData = function () {
2044 data = [];
2045 parent.find(options.img).each(function (index) {
2046 var othis = $(this);
2047 othis.attr('layer-index', index);
2048 data.push({
2049 alt: othis.attr('alt'),
2050 pid: othis.attr('layer-pid'),
2051 src:
2052 othis.attr('lay-src') ||
2053 othis.attr('layer-src') ||
2054 othis.attr('src'),
2055 thumb: othis.attr('src')
2056 });
2057 });
2058 };
2059
2060 pushData();
2061

Callers 1

layer.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected