使用AngularJS重定向到其他页面的特定部分

时间:2018-08-02 19:14:52

标签: angularjs sharepoint sharepoint-2013

我正在尝试从另一个页面重定向到页面中的特定div,我知道通常可以通过重定向到URL +附加#和给定div的ID来完成。但是,这似乎对我不起作用,不知道是不是AngularJS渲染了引起该问题的元素。

我的操作方式很简单

int main() {

char userInput[100];    //Store user input

//Take user input
//scanf(" %s",&userInput);
//scanf("%[^\n]s",&userInput);
//scanf("%[^\n]", &userInput);
//gets(userInput);
scanf("%[]s", &userInput); //This takes input but doesnt leave input loop

printf(" %s",userInput);

//i = index to start for looping through the string, starting at the beginning
//count = Stores occurrences of '$'
//inputLength = length of the input, used for limit of loop
int i =0,count =0;
int inputLength = strlen(userInput);

//Loop through the user input, if the character is '$', the integer count will be incremented
for (i; i < inputLength; i++){
    if (userInput[i] == '$'){
        count++;
    }
}

printf("%d", count);
return 0;
}

正在使用AngularJS和Sharepoint开发项目(不知道这是否也是一个因素)。

0 个答案:

没有答案