如何在Index.Html中获取用户名并在关于页面中显示它 [英] How Do I Get User Name In Index.Html And Display It In About Page

查看:486
本文介绍了如何在Index.Html中获取用户名并在关于页面中显示它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



我的名字是Sujay ..我是angularjs的新手..



我想做的是,当有人登录我的网站时,我想要一个简单的提示来获取用户的名字,当用户点击提交时,关于页面会加载一个个性化的问候语给用户,例如.hello john welcome到xyz.com。

Hi there,

My name is Sujay.. i am new to angularjs..

what i would like to do is, when someone logs into my website, i want a simple prompt to get the name of the user and when the user clicks submit the about page loads with a personalised greeting to the user e.g.. hello john welcome to xyz.com.

推荐答案

为什么不从教程开始然后从那里开始,当你学到了更多东西时。

W3Schools是一个非常好的起点: AngularJS教程 [ ^ ]
Why not start with a tutorial and then take from there, when you have learned i bit more.
W3Schools is a pretty good starting point: AngularJS Tutorial[^]


嗯,您的问题不包含单个问题。这就像是一步一步走的过程。正如你所说,你是AngularJS的新手,你最好学习它的基础知识。

从这里学习它 -

http://www.tutorialspoint.com/angularjs/ [ ^ ]

https://docs.angularjs.org/tutorial [ ^ ]



-KR
Well, your issue doesn't comprise the single problem. It's like a process where you go step by step. And as you said, you're new to AngularJS, you better learn the basics of it.
Learn it from here-
http://www.tutorialspoint.com/angularjs/[^]
https://docs.angularjs.org/tutorial[^]

-KR


这篇关于如何在Index.Html中获取用户名并在关于页面中显示它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆