实现的方法用到angular自带的jQlite,当然jQuery的方法也在此页的源代码注释中,模板也单独写在template标签里面,如果需要可以把它放在外面的html文件中,然后用templateUrl引入进来