gpt4 book ai didi

Javascript变量传递

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:38:41 25 4
gpt4 key购买 nike

任何人都可以帮助我完成我的项目吗?我如何才能在 javascript 中调用文本字段的详细信息?

function AddPushpin()
{
var shape = new VEShape(VEShapeType.Pushpin, map.GetCenter());
shape.SetTitle(**//it should be coming from a textfield//**);
shape.SetDescription('This is shape number '+pinid);
pinid++;
map.AddShape(shape);
}

最佳答案

document.getElementById('myTextElementsId').value

关于Javascript变量传递,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/755389/

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