首先前端用uniapp写是效果不错的.
后端管理页面用vue+elementUI(饿了么UI),配合起来就可以做一个相当完整的项目了.
但是我最近发现一个坑.我估计只有做过的才知道.
比如一个按钮绑定了事件:

@onclick(hanshu(canshu))


如果hanshu里面的参数是变量传进来的

data:{
canshu:[],
table:[]
}
hanshu(val){
table = val  (如果这样赋值)
}


页面显示:
div里面放input ,input的内容用for 循环循环出table数组里面的内容.
然后你修改input的内容会发现,canshu的内容也会改变....这就是双向绑定.
也就是说,一个变量a,你传参传给别的变量A,别的地方改了,而且改的是别的变量A,那么变量a也会跟着改变...
想来想去没办法,最后发现一个解决办法:
就是把变量a里面每一个成员单独的赋值给变量A,然后这种情况就解决了.....
碰巧发现的一个问题....

 

评论

全部评论

  1. RxPoint
    Xseeking an option to stimulant medications? Consider https://newyorksecuritylicense.com/modvigil/  for an effective non-stimulant treatment option to manage ADHD symptoms.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  2. CaseyG1
    Understanding the importance of reliable antiviral treatments, it's vital to be aware of where to secure https://progressivepreschool.org/aciclovir/ . For those seeking to fight against herpes virus infections, this option offers a budget-friendly choice.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  3. americanlCare
    Visit https://american-longevity.com/item/generic-ozempic-tablets/  for allergy relief. Secure the best deal on effective medication today.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  4. Vital336
    Veterans often ask, “How should I handle the symptoms while on https://pomodoronyc.com/prednisone-40mg/ ?”
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  5. MasseysjewFan83
    Never ignore the need for a proficient sleep aid. Discover the revolutionary https://midsouthprc.org/item/deetor/ - this site , a game changer in securing a peaceful night's sleep.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  6. CareHelp
    Grasping the uses of https://masseysjewelers.com/drug/zanaflex/  can substantially enhance your muscle management.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  7. JosephJ94
    In need of an antibiotic treatment? Get your prescription without hassle https://americanazachary.com/zachary-la/ymca/ . Available without the need for a doctor's visit, ensuring you receive your treatment swiftly.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  8. MargaretW51
    X-ray your options for safeguarding your home against water-related disasters by securing the https://american-longevity.com/drug/ozempic-walmart-price/  insurance. Explore affordable solutions to safeguard your property today.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  9. PureSpot
    Knowing the risks associated with https://thank-you-note-examples-and-tips.com/item/cheap-prednisone-online/  helps to handle your treatment better.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  10. RxHub21
    Forget not, understanding https://downtowndrugofhillsboro.com/lowest-price-on-generic-lasix/  thoroughly enhances treatment outcomes and patient safety
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
      « 1 ... 12 13 14 15 16 17 18 »