二,自定filter功能 我找了一個(gè)基本angularjs的mvc框架,phonecat,自定義filter也是在這基礎(chǔ)寫(xiě)的,這個(gè)框架挺好用的。 1,filters.js添加一個(gè)module1 2 3 4 5 angular.module('tanktest', []).filter('tankreplace', function() { return function(input) { return input.replace(/tank/, "===") }; ...
www.dbjr.com.cn/article/774...htm 2025-5-30