Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (27 sloc) 592 Bytes
<!doctype html>
<html>
<head>
<script type="text/javascript" src="Ren.js" charset="utf-8"></script>
<script type="text/javascript">
Ren(function() {
var p = Ren.dom('p'), d = Ren.dom('#para'), c = Ren.dom('.ha');
p.css({'backgroundColor': '#f90','height': '200px'});
Ren.ajax({
url: 'ajax.txt',
isJSON: true,
success: function(data) {
alert(data.type);
}
});
Ren.getScript('script.js', function() {
alert(window.ha);
});
});
</script>
</head>
<body>
<p id="para" class="ha" ha="a" style="height:40px;">h</p>
<p class="ha">hh</p>
<p class="ha">hhh</p>
</body>
</html>