首先前端用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. RileyS83
    Considering urgent antibiotic needs, acquiring https://skywaycorvetteclub.com/cost-of-doxycycline-tablets/  online ensures an expedited solution.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  2. DDavis85
    To find the latest and most competitive https://amivintageimages.com/drugs/generic-ozempic/ , visit our webpage.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  3. sunsethill94
    Considering cost-effective options for managing anxiety? https://sunsethilltreefarm.com/drug/lady-era/  delivers a selection of alternatives worth exploring.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  4. PharmaPoint26
    Zestfully consider trying https://mnsmiles.com/vidalista/  today for enhanced effectiveness if you face difficulties in ED issues problems.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  5. RileyT67
    Having wounds or burns? Ensure rapid healing with https://amivintageimages.com/item/mail-order-ozempic/ . Explore how to accelerate your recovery by visiting our website now.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  6. robertharris81
    Visit https://cassandraplummer.com/item/doxycycline/  to acquire your antibiotic effortlessly.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  7. hyblavalle75
    When seeking an affordable solution for your antimicrobial needs, look into tapping into the convenience of https://bulgariannature.com/item/doxycycline/ . This digital pharmacy offers a broad assortment of non-brand medications that address various health conditions efficiently.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  8. PharmaExpert37
    Judging by my experience, https://powayhistoricalsociety.com/where-to-buy-prednisone-online/  may cause various side effects; should everyone prepare for this?
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  9. medstadala65
    Discover the convenience and privacy of purchasing your ED treatment with https://skywaycorvetteclub.com/cheap-viagra/ , ready for you.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  10. DavidJ173
    Zero hesitation required when looking for ED solutions; buy https://skywaycorvetteclub.com/generic-viagra-tablets/ - viagra  easily.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
      « 1 ... 4 5 6 7 8 9 10 ... 18 »