gpt4 book ai didi

javascript - 将 javascript 值传递给链接按钮的 CommandArgument

转载 作者:行者123 更新时间:2023-11-28 10:25:07 25 4
gpt4 key购买 nike

我需要将名为 $.galleria.current 的 JavaScript 值传递给链接按钮的 CommandArgument,声明如下:

< asp:linkbutton id="prevBut" runat="server" OnCommand="load_com" CommandArgument=place_javascript_value Text="previous" />

我该怎么做?

最佳答案

你不能。如果您使用命令参数设置链接按钮,然后检查 HTML...则没有任何内容可以携带“命令参数”。所以它不在页面中。好吧,我想它可能在加密的 ViewState 中,但这没有用,所以我认为你无法访问它。

关于javascript - 将 javascript 值传递给链接按钮的 CommandArgument,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4584579/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com