点单微信小程序开_基于jQuery完成瀑布流页面

日期:2021-01-12 类型:科技新闻 

关键词:制作小程序,小程序商城,扫码点餐小程序,微信小程序开店的步骤,牛刀小程序

基于jQuery实现瀑布流页面       这篇文章主要为大家详细介绍了基于jQuery实现瀑布流页面的相关资料,具有一定的参考价值,感兴趣的小伙伴们可以参考一下

本文实例为大家分享了jQuery实现瀑布流页面展示的具体代码,供大家参考,具体内容如下

views.py

from django.shortcuts import render,HttpResponse
from app01 import models
import json
# Create your views here.
def index(req):
 if req.method == 'POST':
 dic = models.Upload.objects.filter(status=1).values('img1','name','info')
 dic = list(dic)
 dic = json.dum凡科抠图(dic)
 print(dic)
 return HttpResponse(dic)
 ')

url.py

from django.conf.urls import url
from django.contrib import admin
from app01 import views
urlpatterns = [
 url(r'^admin/', admin.site.urls),
 url(r'^index/', views.index),
]
<

 !DOCTYPE html 
 html lang="en" 
 head 
 meta charset="UTF-8" 
 title Title /title 
 style 
 .clearfix:after{
 content: '.';
 visibility: hidden;
 height: 0;
 clear: both;
 display: block;
 img{
 width: 245px;
 height: 200px;
 /style 
 /head 
 body 
 div id="container" 
 div 
 /div 
 div 
 /div 
 div