Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/69.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 使用J QUERY注入外部HTML时出现奇怪的js参数_Jquery_Html - Fatal编程技术网

Jquery 使用J QUERY注入外部HTML时出现奇怪的js参数

Jquery 使用J QUERY注入外部HTML时出现奇怪的js参数,jquery,html,Jquery,Html,我使用jquery导入外部HTML <script type="text/javascript"> $.ajax({ url: "lajk.html", success: function (data) { $('body').append(data); }, dataType: 'html' }); </script> $.ajax({ 网址:“lajk.html”, 成功:函数(数据){$('body')。追加(数据);}, 数据类型:'ht

我使用jquery导入外部HTML

<script type="text/javascript"> $.ajax({
    url: "lajk.html",
    success: function (data) { $('body').append(data); },
    dataType: 'html' }); </script>
$.ajax({
网址:“lajk.html”,
成功:函数(数据){$('body')。追加(数据);},
数据类型:'html'});
外部HTML代码lajk.HTML包含此代码

<script type="text/javascript" src="floatinglike.js"></script><script type="text/javascript"> $(document).ready(function(){         get_counts();   }); </script>
$(document).ready(函数(){get_counts();});
但在输出中,我得到了奇怪的参数 floatinglike.js?u=1498259883365

我为什么得到这些参数以及如何删除它们。我整理它是因为pingdom工具测试。 下面是一个例子:
简单的解决方案是像这样加载html

$("body").load("lajk.html");

我在html中内联js并解决了这个问题:/I需要其他解决方案吗?