随笔 - 106  文章 - 0  评论 - 1  阅读 - 40962
03 2018 档案
自定义指令实例
摘要:var app = angular.module("app",[]); app.controller("ctrl", function ($scope) { $scope.title = "点击展开"; $scope.text = "这是内部内容"; $scope.list = [{ title: "标题1", text: "内容1" },... 阅读全文
posted @ 2018-03-29 16:16 段了的弦 阅读(162) 评论(0) 推荐(0) 编辑
OData
摘要:安装OData环境: 安装EF环境: Code First连接字符串:web.config中 配置路由:WebApiConfig 阅读全文
posted @ 2018-03-27 14:49 段了的弦 阅读(186) 评论(0) 推荐(0) 编辑
$rootScope、$apply、$watch
摘要:$rootScope:$rootScope是所有$scope对象的最上层,对全部controller有效 也可以用在控制器内; $apply:AngularJs外部的控制器(DOM事件、外部的回调函数如JQuery UI等第三方控件),调用AngularJs函数后,就必须使用$apply()。 $w 阅读全文
posted @ 2018-03-27 10:38 段了的弦 阅读(211) 评论(0) 推荐(0) 编辑
EF code first 数据模型创建数据库
摘要:首先:工具-NuGet包管理器-程序包管理器控制台,输入 Install-package EntityFramework ,安装EF环境 创建表: 新建类,比如名为student ,命名空间:using System.ComponentModel.DataAnnotations; 表中内容为 新建上 阅读全文
posted @ 2018-03-19 16:02 段了的弦 阅读(179) 评论(0) 推荐(0) 编辑
angularjs directive2
摘要:HTML: JS: 阅读全文
posted @ 2018-03-16 15:53 段了的弦 阅读(128) 评论(0) 推荐(0) 编辑
angularjs directive
摘要:关键词: 一般用法: html中可以这样用: directive调用controller中的方法: 阅读全文
posted @ 2018-03-16 15:51 段了的弦 阅读(143) 评论(0) 推荐(0) 编辑
angularjs service
摘要:angular.module('app', []) .value("a", "123") //可改 .constant("b", "456") //不可改 .factory("c", function () { return { ... 阅读全文
posted @ 2018-03-16 15:37 段了的弦 阅读(111) 评论(0) 推荐(0) 编辑
angular repeat
摘要:内容于JS中: 阅读全文
posted @ 2018-03-16 15:31 段了的弦 阅读(152) 评论(0) 推荐(0) 编辑
angularjs 表单
摘要:当带有 ng-disabled="f.$invalid" 时(f为form的name),input内加入required,表示这项为必填项 !! JS中: 阅读全文
posted @ 2018-03-16 15:29 段了的弦 阅读(110) 评论(0) 推荐(0) 编辑
angularjs 常用指令
摘要:常用指令: 1.例如输入框中输入内容,点击提交添加到列表中: 2.几种数据绑定的方式: 3.登录界面: 4.页面刷新时防止出现符号: 阅读全文
posted @ 2018-03-16 15:22 段了的弦 阅读(152) 评论(0) 推荐(0) 编辑

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

点击右上角即可分享
微信分享提示