小编Jus*_*ase的帖子

使用嵌套路由angularjs时,"无法解决......从状态..."错误

我是angularjs的新手,我想在我的应用程序中使用嵌套的ui-routes.一些代码片段......

profile.html

<div class="row">
<div class="dl-horizontal" id="information">

    <div class="col-md-8 col-md-offset-2">

    <!-- edit button -->
    <div style="margin-bottom: 15px">   
        <div class="button" style="margin-top:5px" style="float:left">
            <button type="button" class="btn btn-primary" ui-sref="edit_profile" ng-click="populate()"><span class="glyphicon glyphicon-pencil"></span> Edit Profile</button>
        </div>
    </div>
Run Code Online (Sandbox Code Playgroud)

client_UI.js

//object for routing
var route = angular.module('route', ["ui.router"])

// configure the routing        
route.config(function($stateProvider, $urlRouterProvider, $locationProvider) {

    // send to profile page
    $urlRouterProvider.otherwise("/profile");

    $stateProvider

    // route for personal info
    .state('profile', {
        url: "/profile", 
        templateUrl : "profile_area/profile.html" , 
        controller : 'profileController'
    })
Run Code Online (Sandbox Code Playgroud)

edit.html

<script src="Scripts/angular-ui-bootstrap.js"></script>


    <!-- title --> …
Run Code Online (Sandbox Code Playgroud)

angularjs angular-ui-router

26
推荐指数
1
解决办法
7万
查看次数

PKI 中的信任锚证书

我试图弄清楚信任锚在 PKI 中如何发挥作用。据我所知,它是证书链的根,用于验证证书是否可信。它如何验证证书?(例如,它如何使用公钥和证书链来验证证书?)

pki

4
推荐指数
2
解决办法
5128
查看次数

如何使用VBA将Word文档作为电子邮件正文发送

我创建了一个与outlook和excel一起使用的宏,它将使用电子邮件地址列表(在excel中)并向所有这些地址发送电子邮件(在outlook中).我想拿一个word文档(来自microsoft word)并将其用作电子邮件的正文.问题是,我将在word文档中有图像,我需要word文档来保持它的格式.现在,我的VBA获取了我的word文档的内容,但格式化已经消失,图像不包括在内.这是我的代码:

Sub spamEmail()
   'Setting up the Excel variables.
   Dim olApp As Object
   Dim oMail As Outlook.MailItem
   Dim iCounter As Integer
   Dim Dest As Variant
   Dim SDest As String
   Dim Excel As Object
   Dim Name As String
   Dim Word As Object
   Dim oAccount As Outlook.Account
   Dim doc As Word.Document
   Dim itm As Object
   Dim MsgTxt As String

   'Set the outlook account to send.
   Set oAccount = Application.Session.Accounts.Item(2)

   'Create excel object.
   Set Excel = CreateObject("excel.application")
   Excel.Visible = True
   Excel.Workbooks.Open ("C:\Users\Deryl Lam\Documents\Book1.xlsx") …
Run Code Online (Sandbox Code Playgroud)

excel outlook vba ms-word excel-vba

2
推荐指数
1
解决办法
2万
查看次数

标签 统计

angular-ui-router ×1

angularjs ×1

excel ×1

excel-vba ×1

ms-word ×1

outlook ×1

pki ×1

vba ×1