Skip to content

songmouxia/allDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

allDemo

所有已经完成的题目的demo, 基础题:

1)请说明一个div距离屏幕左上角(100,100)偏移的N种方法(完成)

 css方法:
1、position:absolute;绝对定位,top和left属性值各100;
2、pososition:relative;相对定位,top和left属性值各100;
3、margin-top和margin-left属性值各100;
js动态设置:

2)请尝试生成一个20个1-100之间的随机数,随机数不能重复(完成)

上面random.js文件 :https://github.com/songmouxia/allDemo/blob/master/random.js

3) 尝试对一个随机字符串(数字和字母),将里面的偶数(0-9)求和(完成)

上面randStr.js文件 :https://github.com/songmouxia/allDemo/blob/master/randomStr.js

进阶题:

  1. 请基于纯CSS, jQuery实现一个Tab组件(完成)

    代码地址https://github.com/songmouxia/tabModule

  2. 使用 express 4.x 的jade+stylus复制页面 https://m.jimu.com/aboutus(完成)

    代码地址https://github.com/songmouxia/Express-jade-stylus

  3. 使用 fis (http://fis.baidu.com/ http://fis.baidu.com/) ,jade , stylus复制页面 https://m.jimu.com/aboutus , 并将js/css以inline的方式写入页面(完成)

    代码地址:https://github.com/songmouxia/fis3-jade-stylus

  4. 使用 js 实现一个 publish/subscribe 模式 http://en.wikipedia.org/wiki/Publish%E2%80%93subscribe_pattern http://en.wikipedia.org/wiki/Publish%E2%80%93subscribe_pattern https://msdn.microsoft.com/en-us/library/ms978603.aspx https://msdn.microsoft.com/en-us/library/ms978603.aspx(完成)

上面subpublish.js文件: https://github.com/songmouxia/allDemo/blob/master/subpublish.js

  1. 使用 https://github.com/segmentio/nightmare 实现模拟登录 https://www.jimu.com/User/Login 页面的脚本(完成)

    代码地址https://github.com/songmouxia/nightmare-login

About

所有题目的demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published