会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
yufenghou
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
···
43
下一页
2016年5月8日
django 数据库交互
摘要: 修改配置文件 写app当中的models 使用命令行检测是否可行 生成table 运行生成表
阅读全文
posted @ 2016-05-08 13:17 yufenghou
阅读(134)
评论(0)
推荐(0)
2016年5月7日
django 模版语法及使用
摘要: 模版的定义 模版是一个文本,用语分离文档的表现形式和内容,通常用于生成html 模版当中能够使用的python语法非常少,for ,if 之类,还有ifequal,结束的时候也要写endifequal 过滤器 {{ name|lower }}//转化为小写 {{ name|upper }}//转化为
阅读全文
posted @ 2016-05-07 23:15 yufenghou
阅读(134)
评论(0)
推荐(0)
django 视图开发与url配置
摘要: 可识别的视图需满足一下两个条件: 1.第一个参数的类型:HttpRequest 2.返回HttpResponse实例 在新建app的views当中写下以下内容 修改urls 然后打开 回顾 回顾一下整个流程 1.首先访问settings,当中的 2.在urls当中找到 3.在myLesson当中的v
阅读全文
posted @ 2016-05-07 22:22 yufenghou
阅读(157)
评论(0)
推荐(0)
django
摘要: 创建工程 进入文件 创建一个应用 在setting里面修改installapp栏目 然后启动项目 查看结果
阅读全文
posted @ 2016-05-07 22:02 yufenghou
阅读(132)
评论(0)
推荐(0)
django 安装
摘要: 或者到django的官网下载 然后
阅读全文
posted @ 2016-05-07 21:34 yufenghou
阅读(84)
评论(0)
推荐(0)
2016年5月6日
ccc let
摘要: let,其实就是块级作用域申明变量的var。之前JS的var关键字是非块级作用域的,而是函数级的。 例如arr=[0,1,2],我们经常写循环 for(var i=0,len=arr.length; i
阅读全文
posted @ 2016-05-06 13:48 yufenghou
阅读(118)
评论(0)
推荐(0)
ccc pool
摘要: ``` var sp = new _ccsg.Sprite("a.png"); this.addChild(sp); cc.pool.putInPool(sp); cc.pool.getFromPool(_ccsg.Sprite, "a.png"); ```
阅读全文
posted @ 2016-05-06 13:40 yufenghou
阅读(108)
评论(0)
推荐(0)
2016年4月30日
ccc 模拟重力 正太分布
摘要: ball.js cc.Class({ extends: cc.Component, properties: { x_vel:{ default:0 }, y_vel:{ default:0 }, grivatity:{ default:null }, }, onLoad: function () {
阅读全文
posted @ 2016-04-30 13:25 yufenghou
阅读(235)
评论(0)
推荐(0)
2016年4月29日
ccc 正态分布
摘要: ``` cc.Class({ extends: cc.Component, properties: { prefab: { default:null, type:cc.Prefab }, root: { default:null, type:cc.Node } }, // use this for
阅读全文
posted @ 2016-04-29 17:10 yufenghou
阅读(182)
评论(0)
推荐(0)
ccc this 指针
摘要: ``` cc.Class({ extends: cc.Component, properties: { musicPlayer: { default: null, type: cc.AudioSource }, dingClip: { default: null...
阅读全文
posted @ 2016-04-29 15:26 yufenghou
阅读(141)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
43
下一页
公告