码迷,mamicode.com
首页 >  
搜索关键字:sea    ( 3752个结果
一个极为简单的requirejs实现
skyweaver skyweaver skyweaver 一个极为简单的requirejs实现 require和 sea的源码分析,我之前的博客有写过, 今天我想分享的是一个很简单的核心代码(不带注释和空行大概60行), 没有容错判断。 require.js require函数实现用一句话概括: ...
分类:Web程序   时间:2016-10-20 00:17:42    阅读次数:188
一个极为简单的requirejs实现
require和 sea的源码分析,我之前的博客有写过, 今天我想分享的是一个很简单的核心代码(不带注释和空行大概60行), 没有容错判断。 require.js require函数实现用一句话概括: 依次加载require的模块,然后监测script的onload事件,判断所有模块加载成功,执行r ...
分类:Web程序   时间:2016-10-19 20:23:16    阅读次数:261
模块化开发seaJS
1, 先下载seaJs, 然后在我们的项目中新建一个文件夹命名sea(名字可以随便取),把下载好的sea.js 文件拷贝到里面,最后在html文档中把用script标签引入即可使用。 2, 在模块化中,一个js文件就是一个模块,js文件夹下所有js文件都是模块。当然把普通的js文件转换成模块,要做一 ...
分类:Web程序   时间:2016-10-01 10:33:14    阅读次数:215
September 26th 2016 Week 40th Mondy
The land didn't move, but moved. The sea wasn't still, yet was still. 大地止而亦行,大海动而亦静。 Still waters run deep. At the moments when I allow myself to be a ...
分类:其他好文   时间:2016-09-26 23:08:42    阅读次数:280
如何让你的webapp也能跳窗口搜索
目前很多手机app或者一些webapp,搜索栏基本采用跳窗口的搜索方式 怎么做 实现方式: 1、在触发外层的input的时候打开个modal层,默认打开该modal层的时候就触发了moda里面的input的focus事件 2、将软键盘变成搜索字样,在web中你可能会觉得input type="sea ...
分类:移动开发   时间:2016-09-26 12:32:56    阅读次数:205
django目录
django框架目录 django创建项目 初识django django 操作数据库--orm(object relation mapping) models django之form表单验证 django操作数据库之查询F,Q操作 和 seach搜索功能 django的序列化 django的sea ...
分类:其他好文   时间:2016-09-17 00:36:30    阅读次数:227
解决sea.js引用jQuery提示$ is not a function的问题
在使用sea.js的如下写法引用jQuery文件时, 会报错,提示$ is not a function; 原因在于jQuery是默认支持AMD规范的,而sea.js是遵循CMD规范进行加载;这两种规范对外提供模块时的定义方法不一样: jQuery对外提供模块时默认支持的是AMD规范,其写法为: 因 ...
分类:Web程序   时间:2016-09-08 12:46:52    阅读次数:168
September 6th 2016 Week 37th Tuesday
I only wish to face the sea, with spring flowers blossoming. 我只愿面朝大海,春暖花开。 That scenery is beautiful, but it is not exact the life I want. What I want ...
分类:其他好文   时间:2016-09-07 01:26:51    阅读次数:118
poj 1328贪心
Description Assume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating ...
分类:其他好文   时间:2016-09-04 15:36:46    阅读次数:177
iOS---searchBar 搜索框 光标初始位置后移
#import <UIKit/UIKit.h> @interface SearchBar : UITextField @property (nonatomic,strong) UIButton *button; + (instancetype)searchBar; @end #import "Sea ...
分类:移动开发   时间:2016-08-30 19:21:01    阅读次数:219
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!