本文介绍了为什么不时间戳参数,获得与请求传承下去?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
通过一个请求,四个参数需要passsed,其中仅出3获得通过。参数时间戳
没有得到通过。可能是什么原因呢?
With a request,four parameters need to passsed, out of which only 3 are getting passed. The parameter timestamp
doesn't get passed. What could be the reason for this?
$.ajax( {
url : 'http://localhost:8081/Football/FeFeed',
data : {
playernumber : $('#playernumber_goal').val(),
timestamp : $('#match').get(0).currrentTime,
event : 'goal',
team : 'team-name'
},
type : 'GET'
}) .done(function(message){
}).fail(function(message) {
});
的HTML #match:
Html for #match :
<video id="match" width="440" controls>
<source src="match.mp4" type="video/mp4">
<source src="match.ogg" type="video/ogg">
Your browser does not support HTML5 video.
</video>
形成的网址是: <$c$c>http://localhost:8081/Football/FeFeed?playernumber=22&event=goal&team=team-name
编辑:我可以通过像一个静态变量 100.232
的
推荐答案
currrentTime
或 currentTime的
?!
这篇关于为什么不时间戳参数,获得与请求传承下去?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!