在前端保留自动生成的变量
问题描述:
我有一个变量int id
.
我只想在前端自动生成,这意味着我不想每次只需要自动更新就给出值.
有可能吗?
谢谢&问候,
Ravi
I have a variable int id
.
I want autogenerated in front end only, that means I don''t want to give values every time that only will take auto updating.
Is it possible?
Thanks & Regards,
Ravi
答
将其存储在视图状态中,并在页面加载时将视图状态值重新分配给变量
如果发现有用,请接受答案:)
Store it in view state and reassign view state value to the variable on page load
Accept the answer if found useful :)
是的.
将变量存储在视图状态中,并在页面加载时将视图状态值重新分配给该变量.
Yes.
Store the variable in view state and reassign view state value to the variable on page load.