avalonjs
Posted 吴晓阳
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了avalonjs相关的知识,希望对你有一定的参考价值。
var vm = avalon.define({ $id: "login", username: "", password: "", message: ‘‘, url: ‘javascript:void(0)‘, bigUsername: function () { var username = vm.username; var str =‘‘; for (var i = 0; i < username.length && i < 6; i += 6) { str += username.substr(i,6) + " "; } for (var i = 6; i < username.length && i < 14; i += 8) { str += username.substr(i, 8) + " "; } for (var i = 14; i < username.length && i < 18; i += 4) { str += username.substr(i, 4) + " "; } return str; },
以上是关于avalonjs的主要内容,如果未能解决你的问题,请参考以下文章