<html>
<head>
</head>
<body >
<button onclick="test()">test</button>
</body>
<script>
var r = {
strict: function(t, e) {
if (! (e in t)) throw new g["default"]('"' + e + '" not defined in ' + t);
return t[e];
},
lookup: function(t, e) {
for (var i = t.length,
n = 0; n < i; n++) if (t[n] && null !== t[n][e]) return t[n][e];
},
lambda: function(t, e) {
return "function" == typeof t ? t.call(e) : t;
},
// escapeExpression: f.escapeExpression,
// invokePartial: i,
fn: function(e) {
var i = t[e];
return i.decorator = t[e + "_d"],
i;
},
programs: [],
program: function(t, e, i, n, r) {
var s = this.programs[t],
a = this.fn(t);
return e || r || n || i ? s = o(this, t, a, e, i, n, r) : s || (s = this.programs[t] = o(this, t, a)),
s;
},
data: function(t, e) {
for (; t && e--;) t = t._parent;
return t;
},
merge: function(t, e) {
var i = t || e;
return t && e && t !== e && (i = f.extend({},
e, t)),
i;
},
nullContext: Object.seal({})
// noop: e.VM.noop,
// compilerInfo: t.compiler
};
function test(){
// alert("");
var trees = new Array(1, 2, 3, 4, 5);
var a= r.lookup(trees,1);
alert(a);
}
</script>
</html>
ie8无法执行