test用例

<!DOCTYPE html>

<html>

 

<head>

<meta charset="utf-8">

<title></title>

<script>

var base_city_id = "1";

var base_url_interface = "";

var base_url_site = "";

</script>

<!--<script src="zepto.min.js"></script>

<script src="touch.js"></script>-->

<script src="jquery-1.9.1.js"></script>

<link rel="stylesheet" type="text/css" href="rr.css" />

<script src="RR.js"></script>

<link type="text/css" rel="stylesheet" href="RR_Carouse.css" />

</head>

 

<body style="height: 99999px;background-color: #A6E1EC;">

<span style="width:400px;background-color: #bbb;height: 400px;display: none;" id="d">

<img src="img/1.gif" />

<div style="width: 100px;height: 100px;background-color: #555;float: right;"></div>

</span>

<div id="f">

<input id="j" />

<textarea id="k"></textarea>

<select id="l">

<option>29</option>

<option>423432423fdfdsfdsfsdfsdfsdfefe4</option>

<option selected="selected">32</option>

</select>

</div>

 

<div class='carouse'>

<ul class='carouse_pic'>

<li>

<img src='img/1.jpg' />

</li>

<li>

<img src='img/2.jpg' />

</li>

<li>

<img src='img/3.jpg' />

</li>

<li>

<img src='img/4.jpg' />

</li>

</ul>

<div class='carouse_btn'>

<span class='cur'></span>

<span></span>

<span></span>

<span></span>

</div>

</div>

<div style="position: absolute;width: 200px;height: 200px;background-image: url(img/2.jpg);left: 200px;top: 400px;background:-webkit-radial-gradient(#ace, #f96, #1E90FF);" id="pos"></div>

<div style="width: 400px;height: 400px;background-color: #000;position: fixed;top: 500px;" id="top" class="RR_toTop_hidd"></div>

<a href="" style="position: absolute;width: 200px;height: 200px;background:#000;display: none;z-index: 10;" id="mask"></a>

<style>

#ccc img {

width: 400px;

display: block;

height: 400px;

}

</style>

<div style="width: 900px;height: 1200px;" id="ccc">

<img src="img/1.jpg" id="i1" />

<img src="img/1.jpg" id="i2" />

<img src="img/1.jpg" id="i3" />

<img src="img/1.jpg" id="i4" />

<img src="img/1.jpg" id="i5" />

<img src="img/1.jpg" id="i6" />

</div>

<div id="c" style="position: absolute;top: 30px;"></div>

<div id="v" style="position: absolute;"></div>

</body>

<script src="rrE001.js"></script>

<script src="rrE002.js"></script>

<script src="jquery.touchSwipe.min.js"></script>

<script src="RR_Carouse.js"></script>

<script src="require.js"></script>

<script>

// RR.ajaxWrap({

// "url": "rot.html",

// })(function(r) {})()()()()

// RR.resize("#pos"); //resize

// $(window).on("resize", function() {

// var w = screen.width,

// h = screen.height;

// console.log(w + "&" + h);

// $("#pos").css({

// "width": RR.resize("#pos", true).width,

// "height": RR.resize("#pos", true).height

// })

// })

// RR.mod("img", {

// "img1": "img/2.jpg",

// "img2": "img/2.jpg",

// "img3": "img/2.jpg",

// "img4": "img/2.jpg",

// "img5": "img/2.jpg",

// }, {}, {

// "img1": "#i1",

// "img2": "#i2",

// "img3": "#i3",

// "img4": "#i4",

// "img5": "#i5",

// })

// RR.setMod("img", {

// "img6": "img/2.jpg"

// });

// RR.setModS("img", {

// "img6": "#i6"

// })

// $(document).on("scroll", function() {

// RR.lazyload("img", "#ccc img", "belong"); //lazyload

// })

// $(document).on("scroll", function() {

// // $("#ccc img").each(function() {

// // if (RR.position(this).belong) {

// // for (var i in RR.getMod("img", true)["sizzle"]) {

// // if ($(this).attr("id") == RR.getMod("img", true)["sizzle"][i].slice(1)) {

// // if ($(this).attr("id") != RR.getMod("img")[i])

// // $(this).attr("src", RR.getMod("img")[i])

// // }

// // }

// // }

// // })

// RR.lazyload("img", "#ccc img")

// })

// RR.mod("mmm", { //mod

// "q": "",

// "w": "",

// "e": "e"

// }, {

// "q": function(a, b, c) {

// alert("q")

// },

// "w": function(a, b, c) {},

// "e": function(a, b, c) {

// alert("e")

// },

// "r": function(a, b, c, d) {

// alert("r")

// }

// }, {

// "q": "#c",

// "w": "#j",

// "e": "#k",

// });

// RR.mod("www", { //mod

// "q": "",

// "w": "",

// "e": "e"

// }, {

// "q": function(a, b, c) {

// alert("q")

// },

// "w": function(a, b, c) {},

// "e": function(a, b, c) {

// alert("e")

// },

// "r": function(a, b, c, d) {

// alert("rr")

// }

// }, {

// "q": "#c",

// "w": "#j",

// "e": "#k",

// });

// var mod = RR.getMod("mmm");

// var mod1 = RR.getMod("www", true);

// alert(mod.q)

// delete mod.q;

// alert(mod.q)

// RR.mod("www",{"r":4})

// delete RR.getMod("www",true)["monitor"]

// RR.setModM("www", {

// "g": function() {

// alert("g")

// }

// })

// RR.setMod("www", {

// "g": 3

// })

// alert(RR.getMod("www").r)

// RR.setMod("mmm",{"q":"3","w":4}) 

// RR.setMod("mmm",{"e":"2"})

// alert(RR.getMod("mmm")["e"])

// RR.past("#pos", "#mask") //past

// $(document).on("mousewheel", function() {//posi

// if (RR.position("#pos").belong) console.log(1)

// })

// RR.save("a",{}).b = "bb"

// alert(RR.read("a").b)

// require('jquery.event.move.js')(jQuery);

// $("body").on("swipeleft",function(){alert(1)})

RR.carousel("carouse") //carouse

// RR.toTop("#top") //toTop

// var $m = RR.setMask("#d"); //mask

// $m.find("div").on("click", function() {

// alert(RR.clearMask());

// })

// alert(RR.testForm("#f", { //testForm

// "j": "kkkkj",

// "k": "k",

// "l": "l"

// }, "#k"))

// RR.newRR()

// RR.newRR({

// "i": "i"

// }); //RRSPACE

// RR.newRR()

// alert(RRSPACE[2].i)

// RR.setDefaultRR(RRSPACE[1]); //DATASPACE

// RR.deleteRR(RR);

//   RR.deleteRR(RR);

//   RR.deleteRR(RR);

// alert(RRSPACE.length); 

// alert(RRSPACE[0] === RRSPACE[1])

// function callback(d){

// alert(d.a) 

// }

// $.ajax({

// type: "get",

// url: "060401.js",

// dataType: "jsonp",

// jsonp: "cback",

// success: function(d) {

// alert(d);

// },

// error: function(e, f) {

// // alert(f)

// }

// })

// RR.ajax({url:"060401.js"},{},{success:{str0:"11"}})

// RR.sizzle("div").css("height","300px").back().wx();

// RR.clearCookie(); //test cookie

// alert( RR.ajax({}).ajax({}).sizzle) //test sizzle ajax

// alert(typeof RR.sizzle($("div")).css("width",0).back().save) //test back

// alert(RR.sizzle("div").css("width",0).back().save)

// alert(typeof RR.require) //test require

// RR.require("req00.js")

// alert(typeof RR.constructor.prototype.extend)

// RR.alert()

// alert(RR.bbb)

//   alert(RR.save({"nnn":"nnn","mmm":"mmm"}).dataLength())  //test save dataLength

//   alert(RR.getData().mmm)

// alert(RR.VERSIONS) //test GlobalAttr

// RR.require("req00.js")

// RR.ajax({type:"get",url:"ttt.js",dataType:"text"},{},{success:{type:0}}) 

// RR.alertPri()

</script>

 

</html>

posted @ 2015-06-16 11:50  流水寡淡薄凉  阅读(92)  评论(0编辑  收藏  举报