假设我想为我的用户提供数据提供程序元素,例如
<user-data-provider user-data="{{data}}"></user-data-provider>
Run Code Online (Sandbox Code Playgroud)
它发送一个ajax请求并获取登录用户.
假设我想在不同的页面中访问我的用户数据,并将此标记添加到我需要的任何地方,但问题是,每次浏览器看到此标记时,再次生成ajax,我必须等到获取数据!
我知道我可以在我的主页面中创建一个变量并将其传递给子页面,但这对我来说似乎有些过分!
如何在不同页面和部分应用程序中保留用户数据?
先感谢您
我发现extjs编辑器还有一个问题.
当我复制
<ol type="A" style="margin-top: 0pt; margin-bottom: 0pt;">
<li style="line-height: 115%; font-size: 11pt; margin-top: 0pt; margin-bottom: 10pt;"><span style="font-family: Calibri; font-size: 11pt;">Main Heading 1</span></li>
</ol>
<p style="margin: 0pt 0pt 10pt 72pt; line-height: 115%; text-indent: -18pt; font-size: 11pt;"><span style="font-family: Calibri; font-size: 11pt;">1.</span><span style='font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;'> </span><span style="font-family: Calibri; font-size: 11pt;">Item 1</span></p>
<p style="margin: 0pt 0pt 10pt 72pt; line-height: 115%; text-indent: -18pt; font-size: 11pt;"><span style="font-family: Calibri; font-size: 11pt;">2.</span><span style='font: 7pt/normal "Times New Roman"; font-size-adjust: none; font-stretch: normal;'> …Run Code Online (Sandbox Code Playgroud)