标签:
<!DOCTYPE html> <html ng-app="datetimeMinmax"> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> <title>mobiscroll</title> <script src="ionic.bundle.min.js"></script> <script src="angular-resource.min.js"></script> <script src="bindonce.js"></script> <script src="mobiscroll.custom-3.0.0-beta4.min.js"></script> <link href="mobiscroll.custom-3.0.0-beta4.min.css" rel="stylesheet"> <script> angular.module(‘datetimeMinmax‘, [‘mobiscroll-datetime‘]).controller(‘demoController‘, [‘$scope‘, function ($scope) { $scope.settings = { theme: "android-holo-light", min: new Date(2014, 8, 15), max: new Date(2024, 8, 14) }; }]); </script> </head> <body> <input ng-model="myDate" mobiscroll-date="settings" ng-click="‘datetimeMinmax‘.show()" ng-controller="demoController"/> </body> </html>
标签:
原文地址:http://www.cnblogs.com/pumushan/p/5765861.html