使用javascript编写文字 [英] Write text using javascript

查看:84
本文介绍了使用javascript编写文字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我在两页中使用javascript.第一页用于用户登录并将其数据保存在cookie中.
第二页,我从cookie中检索该数据,但是现在我需要显示该数据.

现在,我想知道如何显示来自单独的javascript文件的数据以及应该使用哪种html控件.

任何帮助


谢谢

hi all

i am using javascript in two pages .The first for user login and save his data in cookie.
the second page i retrieve that data from the cookie but now i need to display that data.

Now i want to know how to display that data from the seperate javascript file and what the kind of html control should i use.

Any help


Thanks

推荐答案

您几乎可以使用任何想要的html元素,例如span,div,input,以及任何适合您的设计的元素.

http://api.jquery.com/val/ [
You can use just about any html element you''d like, span, div, input, whatever works for your design.

http://api.jquery.com/val/[^]


这篇关于使用javascript编写文字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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