Jenkins在使用HTML Publisher插件时不触发JS代码
我想在jenkins上呈现一个html页面,并使用了html Publisher插件 My index.html包含以下代码:Jenkins在使用HTML Publisher插件时不触发JS代码,jenkins,Jenkins,我想在jenkins上呈现一个html页面,并使用了html Publisher插件 My index.html包含以下代码: <html> <head> <script type="text/javascript"> function inc(){ var score = document.getElementById('Score'); var number = score.innerHTML; number++;
<html>
<head>
<script type="text/javascript">
function inc(){
var score = document.getElementById('Score');
var number = score.innerHTML;
number++;
score.innerHTML = number;
}
</script>
</head>
<body>
Score: <p id = "Score">0</p>
<script type="text/javascript">
inc();
</script>
</body>
</html>
函数inc(){
var score=document.getElementById('score');
var number=score.innerHTML;
数字++;
score.innerHTML=数字;
}
分数:0
公司();
通常在浏览器中,这段代码呈现输出分数:1,但在jenkins中,当我使用HTML publisher插件显示它时,它呈现输出分数:0