码迷,mamicode.com
首页 >  
搜索关键字:render    ( 2941个结果
wtforms 使用
wtforms是一个表单模板库, 下面以修改密码表单为例简单说明其用法. 我们可以用python代码定义form的基本元素, 比如用户名/邮箱, 并给定各个元素的validation条件. 然后在render_template()方法中, 将python的form类传递给html模板. 在模板上, ...
分类:其他好文   时间:2015-02-17 17:41:49    阅读次数:989
解决jinja2和angular的花括号{{}}冲突的方法。
一共3个方法, A、http://flask-triangle.readthedocs.org/en/develop/tutorial/part1.html 上代码 app.py from?flask?import?Flask,?render_template from?flask.ext.triangle?import?Triangle ????...
分类:其他好文   时间:2015-02-17 13:00:13    阅读次数:187
Mesh属性[Unity]
Mesh是Unity内的一个组件,称为网格组件。3D网格是Unity中最重要的图形元素。在Unity中存在多种组件用于渲染标准网格或者蒙皮网格、拖尾或者3D线条。 在Unity-》Component-》Mesh组件内,有Mesh Filter,Text Mesh, Mesh Render三个子...
分类:编程语言   时间:2015-02-13 16:12:29    阅读次数:276
cjson源代码解读 (二)解析流程
先从test.c 开始说, 我们看到test.c 里面有两个函数用来测试, doit 和dofile, 一个是读char* 一个是读file, 肯定是读字符串的要简单, 所以先看doit./* Parse text to JSON, then render back to text, and pri...
分类:Web程序   时间:2015-02-13 14:42:40    阅读次数:372
flask学习4-会话
cookiefrom flask import Flask, render_template, request, redirect, make_responseapp = Flask(__name__)user_list = ['wb', 'valentine', 'wb112232']@app.r...
分类:其他好文   时间:2015-02-12 15:58:46    阅读次数:215
flask学习3
表单通过request取得from flask import Flask, render_template, requestapp = Flask(__name__) @app.route('/regist/', methods=['GET','POST'])def regist(): if req...
分类:其他好文   时间:2015-02-12 10:33:55    阅读次数:141
Design Pattern :Factory and Reflect in java
interface page { void Render(); } class pageA implements page { @Override public void Render() { System.out.println("I am " + this.getClass().getName(...
分类:编程语言   时间:2015-02-11 23:16:31    阅读次数:242
12.2、Libgdx的图像之清屏
(官网:www.libgdx.cn) 在Libgdx中的清屏操作不同于普通的OpenGL应用。唯一的不同是访问OpenGL context。 代码如下: @Override public void render() { Gdx.graphics.getGL20().glClearColor( 1, 0, 0, 1 ); Gdx.graphics.getGL20().glClear(...
分类:其他好文   时间:2015-02-11 14:37:38    阅读次数:129
页面中富文本的使用
1、引包 2、页面中引用 3、js加载$(document).ready(function(){ editor = new UE.ui.Editor(); editor.render("editor"); editor.ready(functi...
分类:其他好文   时间:2015-02-11 12:24:42    阅读次数:158
12.1、Libgdx的图像之持续性和非持续性渲染
(官网:www.libgdx.cn) Libgdx在默认情况下,渲染现成调用render()方法进行持续性渲染。频率取决于你的硬件设备。 有时候有些游戏中并不需要持续性的渲染,为了省电,可以关掉持续性渲染。 只需要在create()方法中执行如下语句: Gdx.graphics.setContinuousRendering(false); Gdx.graphics.requestRend...
分类:其他好文   时间:2015-02-10 11:19:54    阅读次数:192
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!