首先前端用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. MAnderson93
    The top-rated location to secure https://youngdental.net/vpxl/ - youngdental  is open on the web.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  2. Smart558
    Finding reliable advice on https://masseysjewelers.com/drugs/propranolol/  can be difficult, so consult experienced users before starting.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  3. FitPoint17
    X-plore cost-effective options for erectile dysfunction therapy with https://pomodoronyc.com/fildena-150mg/ , securing efficacy and safety.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  4. BioZone
    Quest for affordable ED medications? Discover your remedy at <a href='https://whitecolumnsmotel.com/product/fildena/'>order fildena online</a> , providing a wide selection of quality alternatives.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  5. Heavenlyha8040
    Understanding how https://powayhistoricalsociety.com/drugs/nizagara/ - powayhistoricalsociety.com  functions could benefit those with erectile dysfunction.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  6. BioHelp
    Zero in on affordability and convenience with https://thecaninecookiecompany.com/item/cialis-10mg/ , your go-to source for acquiring effective ED solutions online.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  7. medsbest20
    Researchers have discovered that obtaining https://american-longevity.com/drug/ozempic/ - ozempic 0.5mg  offers an affordable solution for combatting certain conditions, guaranteeing both efficacy and savings.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  8. Fleurandarinf29
    Your search for affordable antibiotics ends here; purchase your https://fleurandarbor.com/amoxicillin/  online for effective bacterial infection treatment.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  9. SmartMax97
    Get your essential antiviral medication easily through https://american-longevity.com/ozempic-for-sale-overnight/ . Whether you're looking to obtain your prescription on the web, we provide a secure, efficient, and reliable platform for all your healthcare needs.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  10. AshleyB695
    Discover affordable treatments for impotence by visiting https://center4family.com/20-mg-cialis/ , where you can buy your prescriptions easily.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
      « 1 ... 6 7 8 9 10 11 12 ... 18 »