Vue Exercise Eight: 02_02_ Click to display content div

Demo online address:
https://sx00xs.github.io/test/8/index.html
----------------------------- ----------------------------------
IDE: VSCode
file formats: .vue
resolve to be completed :()

<Template> 
  <div ID = "App"> 
    <div class = "Outer"> 
      <div V- for = "Item in List": Key = "Item" V-HTML = "Item" 
      @click = "handleInnerhtml (Item ) " 
      > 
        
      </ div> 
    </ div> 
  </ div> 
</ Template> 
<Script> 
Export default { 
  Data: function () {
     return { 
    List: [
       '<strong> Xinhua </ strong> Beijing, 29 Xinhua (Xinhua News Agency correspondent) from melamine to clenbuterol, stained bread from the poison bean sprouts, add non-food substances and the abuse of food additives has become prominent on the table people "insecurity" in food. Lately, from Beijing to Guangdong, from Zhejiang to Ningxia, a fight against the "storm" swept the country illegally added food. ' ,
      'April 21, the State Council deployed to crack down on food illegally added special action and abuse of food additives, Guangdong Province of attention, then held a provincial teleconference. Provincial leaders stressed that food security is a "high voltage", never "Never again"; grasp food safety to highlight a "<strong> serious </ strong>" character, so <strong> prevent </ strong>, <strong > thorough investigation </ strong>, <strong> and severe </ strong>. ' ,
       ' <Strong> Ningxia focus on the four settle the problem milk powder thorough investigation work </ strong>, the source of the region's culture, the acquisition of milk and dairy production, management, catering and other aspects of the 27000 units a comprehensive inventory of milk powder were investigated four cases of the problem, involving three companies, revoked two milk powder production enterprises production license. ' ,
       ' Proper risk monitoring is one of the priorities to strengthen food security in many places. In Beijing, <strong style = "color: red;"> The city set up a 3000 risk monitoring points </ strong>, including the establishment of more than 3,000 kinds of food additives and illegal additives databases, relevant organizations of 110 domestic and foreign food , media clues monitoring, timely risk assessment, to strengthen the sampling control. ' 
    ] 
    } 
  }, 
  Methods:

 

Guess you like

Origin www.cnblogs.com/sx00xs/p/11265625.html