我有以下代码:
var html ="";
var $that ="";
var $url ="";
function pop_open() {
var contents = $(this).html();
if (contents.match("^http")) {
console.log('contents',contents);
$that = $(this);
$url = contents;
$.ajax({
我有一个这样的链接列表:
<div id="linklist">
<a href="link.html">Dummy link text</a>
<a href="link.html">Dummy link text</a>
<a href="link.html">Dummy link text</a>
<a href="link.html">Dummy link text</a>
<
在将index.html文件的内容分成base.html和head.html时,我遇到了这个错误。我尝试从这个文件中删除head标签,并将其放入head.html中,但不起作用。Base.html的内容:
<!DOCTYPE html>
<html >
<head>
#error in this line
{% include 'head.html' %}
</head>
<body>
{% include 'navbar.html' %}
{% block content %}