码迷,mamicode.com
首页 >  
搜索关键字:angularjs $routeprovider template function    ( 67881个结果
通读《STL源码剖析》之后的一点读书笔记
[QQ群: 189191838,对算法和C++感兴趣可以进来] 直接逼入正题。Standard Template Library简称STL。STL可分为容器(containers)、迭代器(iterators)、空间配置器(allocator)、配接器(adaptors)、算法(algorit...
分类:其他好文   时间:2014-05-14 03:55:43    阅读次数:273
requirejs、backbone.js配置
requirejs初探参考资料官网:http://requirejs.org中文译文:http://makingmobile.org/docs/tools/requirejs-api-zhreuqirejs、backbone的配置例子(function(){ require.config({ ...
分类:Web程序   时间:2014-05-14 03:34:11    阅读次数:350
c++ template怎么使用及注意事项
c++ 中的template和c#的什么有点相似?先看下定义方式:template T myFunction(T param1,T param2...){ T result= param1; // do something return result; ...
分类:编程语言   时间:2014-05-14 03:05:27    阅读次数:332
《深度探索c++对象模型》chapter1关于对象对象模型
在c++中,有2种class data member:static和nostatic,以及3钟class member function:static,nostatic和virtual。已知下面这个class Point声明:class Point{public: Point(float xv...
分类:编程语言   时间:2014-05-12 21:43:54    阅读次数:370
闭包
什么闭包?函数嵌套函数,函数嵌套函数,内部函数可以使用外部函数的参数和变量,参数和变量不会被垃圾回收机制回收//当调用完aaa()函数,变量a被垃圾回收机制回收了function aaa() { var a = 1;}aaa();//闭包的形式:function aaa() { var a...
分类:其他好文   时间:2014-05-12 20:34:19    阅读次数:311
多用途运动框架
该运动框架可以用于改变宽度、高度、字体大小、透明度、Left、top等值先上一个获取真正样式的函数//定义getStyle函数,获取真正样式function getStyle(obj,attr){ if(obj.currentStyle){//兼容IE return obj.cu...
分类:其他好文   时间:2014-05-12 20:17:59    阅读次数:357
JQuery日记 5.11 Sizzle选择器(五)
setDocument = Sizzle.setDocument = function( node ) { var hasCompare, //node为Element时返回node所属document //node为Document时返回node //node为空时返回window.document doc = node ? node.ownerDocument || node...
分类:Web程序   时间:2014-05-11 22:41:15    阅读次数:459
jquery ajax 在submit按钮的click处理中应注意的地方
html文件: ................ js文件: $(document).ready(function() {     $("#personsub").live('click',function()     {         if($("#oldpassword").val()=="")         {             a...
分类:Web程序   时间:2014-05-11 22:12:29    阅读次数:347
右键弹出自定义菜单,很有意思呀!
右键弹出自定义菜单,很有意思呀! 右键菜单 function showmenuie5(){ var rightedge=document.body.clientWidth-event.clientX var bottomedge=document.body.clientHeight-event.clientY if (rightedge ie5menu.style.left=d...
分类:其他好文   时间:2014-05-11 20:20:35    阅读次数:240
运维的我要学开发--Flask(1)
Flask默认使用的是Jinja2的模板引擎,下面将会介绍下Flask提供给模板的一些方法。#-*-coding:utf-8-*- #导入一些函数 fromflaskimportFlask fromflaskimportrender_template,g #创建一个app app=Flask(__name__) #创建一个装饰器 @app.route("/") @app.route("/index") defindex..
分类:其他好文   时间:2014-05-11 19:25:12    阅读次数:443
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!