gpt4 book ai didi

javascript - 从输入值分配 flashvars 值

转载 作者:行者123 更新时间:2023-12-02 17:52:46 26 4
gpt4 key购买 nike

我正在尝试使用 JavaScript 将 PHP 解析的输入值中的 URL 分配给 FlashVars

<input id="feed" type="hidden" value="http://localhost/photo/" />

... other HTML code goes here ...

var flashvars = {
feed: document.getElementById('feed').value(),

... other flashvars code goes here ...

}

但这似乎不起作用,有什么办法可以实现这一点吗?谢谢。

最佳答案

没有(),值就不是函数。

改变

feed: document.getElementByID('feed').value(),

feed: document.getElementByID('feed').value,

关于javascript - 从输入值分配 flashvars 值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21212248/

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