請問 如下圖我在添加標(biāo)簽頁面上輸入的數(shù)據(jù),然后點(diǎn)擊保存,怎么將輸入的數(shù)據(jù)增加在能力特長頁面上哦,我寫了個增加方法,但我發(fā)現(xiàn)只能同一頁面上的點(diǎn)擊事件才能調(diào)用,像這種跨頁面的就不能調(diào)用了。該怎么操作了,謝謝各位了。這是我的增加方法 寫在一個控制器里面的。app.controller('labelList', function ($scope) { $scope.labelList = [{name: "后臺管理",percent: "100%"},{name: "java",percent: "80%"},{name: "網(wǎng)頁前端",percent: "70%"}]; $scope.addLabel = function () { var newLabel = {name: " ", percent: " "}; $scope.labelList.push(newLabel); } $scope.delLabel = function (v) { $scope.labelList.splice(v,1); }})
ionic 不同頁面間怎么進(jìn)行函數(shù)操作哦
茅侃侃
2018-08-13 10:08:58