Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
428 views
in Technique[技术] by (71.8m points)

javascript - “&”号在形式上与列表上的显示方式不同(Ampersand displays differently in a form than a list)

I have a master / detail screen where when the user clicks a record in the master list the detail is opened and written to a form for edits.

(我有一个主/详细信息屏幕,当用户单击主列表中的记录时,将打开详细信息并将其写入表单以进行编辑。)

When the original detail is saved to mysql it is sanitised with htmllspecialcharacters.

(将原始详细信息保存到mysql时,将使用htmllspecialcharacters对其进行清理。)

So an ampersand looks like &

(因此,“&”号看起来像&)

at table level.

(在表级别。)

When the data is read to the master detail page, both the list array and detail record item are created by an AJAX call that JSON parses etc. An ampersand looks the same, ie &

(当将数据读取到主详细信息页面时,列表数组和详细信息记录项都是通过JSON解析的AJAX调用创建的。“&”号看起来相同,即&)

, in the master lists object array and the detail items object.

(,在主列表对象数组和详细信息对象中。)

In the list the array is mapped to a template that inserts the elements value with modifying it.

(在列表中,数组映射到模板,该模板插入元素值并对其进行修改。)

The form is built the same way but in the list an ampersand is & and in the form it is &

(表单的构建方式相同,但列表中的&符为& ,形式为&)

Anyone know what going on?

(有人知道发生了什么吗?)

Thanks Mark

(谢谢马克)

  ask by markD2222 translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...