简体   繁体   English

appjs中是否有等效的app.config?

[英]Is there an equivalent of app.config in appjs?

I'm searching an equivalent of app.config for appjs because I need to store some variables and I don't want that an user can see one of them. 我正在搜索等同于app.config的appjs,因为我需要存储一些变量,但我不希望用户看到其中一个。 Any suggestion? 有什么建议吗?

the app.config file is in server side but the .js run in client side. app.config文件在服务器端,但.js在客户端运行。 there is no file such as app.config you should use client side solutions like cookies or you can save your variable on server and then load that with ajax when you need it. 没有app.config之类的文件,您应该使用cookie之类的客户端解决方案,或者可以将变量保存在服务器上,然后在需要时使用ajax加载该变量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM