Home  >  Article  >  Web Front-end  >  I haven’t understood this statement for a long time. Please give me some advice_html/css_WEB-ITnose

I haven’t understood this statement for a long time. Please give me some advice_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:08:031038browse

This post was last edited by Wayneh on 2014-02-19 02:02:42

  <div id="menucart_content">{insert name="load_cart_index"} </div>


Is insert a function?
name="" parameter?
I haven’t understood what it means after reading for a long time, please give me some advice,

100 points rewarded.
Thanks for the reply.

Reply to the discussion (solution)

It doesn’t seem to be html syntax, the part inside {} may be codes in other languages.

It may be the content that will be replaced later. It shows the information of the substitute.
Some pages have things like {...} in them. These {...} will be replaced with js later.
{...} may function as a variable or an object placeholder

That is a template language.
insert should be a function, object method

{insert name="load_cart_index"}
It is just a text string compared to HTML
This code should be a template fragment under a certain framework
You need to read the instructions for use of this framework to understand the true meaning

Back to LS everyone, the main body of this system is written in PHP language. I found this sentence in an html file. It is indeed true in this system There are multiple classes containing insert methods. If I convert the above sentence into js language, can I write it like this:

$(menucart_content).html(对象.insert("load_cart_index"))

Reply to LZ You don’t have the code, how do I know?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Put Taobao customer link in or