首先前端用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. Pure379
    For those looking to order HCG injections, https://ancillarymedsolutions.com/buying-ozempic-online/  offers a reliable, safe avenue.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  2. CareMax
    Having trouble finding where to get your medication? Look no further, click https://amivintageimages.com/item/ozempic-without-a-doctor/ - ozempic 0.25mg  to secure your prescription with ease from any location.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  3. alexrodriguez40
    Keep informed on this anti-malarial medication benefits and guidelines by visiting https://heavenlyhappyhour.com/item/el-torito-happy-hour/  for thorough insights and updates.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  4. Anthony79
    Keeping your health in optimal condition is crucial, and finding the right medication should not be a hassle. For those seeking flexibility and convenience in their treatment, https://ancillarymedsolutions.com/item/ozempic-pills/ - ozempic cost  offers a discreet, effective option. Consider obtaining your medication online, ensuring you receive high-quality care without compromise.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  5. ozempibest24
    Jump into the discussion about https://thecultivarte.com/drugs/lasix/  and answer your questions!
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  6. RxGuide
    When thinking about https://progressivepreschool.org/vidalista/ , what’s the best way to dose it to get maximum effectiveness?
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  7. LThomas95
    Obtain detailed insights about https://shilpaotc.com/nizagara/  to make an educated choice regarding its use.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  8. powayhisto47
    View the current https://american-longevity.com/ozempic-buy-in-canada/  to handle your epilepsy more affordably.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  9. VitalPath
    Zipping through your options for controlling erectile dysfunction? Learn about a streamlined solution by choosing to buy https://skywaycorvetteclub.com/viagra-online-canada/ .
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  10. danielmoore15
    Discover your solution for enhanced vitality; find reliable options and buy https://skywaycorvetteclub.com/cheap-viagra/  today.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
      « 1 ... 12 13 14 15 16 17 18 »