首先前端用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. HealHub
    Looking to control your ulcerative colitis? Discover the most cost-effective solutions at https://american-longevity.com/order-ozempic/ .
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  2. ThankyouFan13
    Considering usage of https://coastal-ims.com/drug/zithromax/ - coastal-ims , what are common side effects to be aware of?
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  3. MatthewM94
    Judging by recent studies, https://thank-you-note-examples-and-tips.com/item/lasix/  frequently proves effective in controlling excess fluid buildup.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  4. AlexM91
    Judging by recent studies, https://thank-you-note-examples-and-tips.com/item/buy-prednisone/  is linked to various issues; does everyone expect them?
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  5. ozempistore85
    How does https://ampersandflowers.com/nizagara/ - ampersandflowers.com  compare against other ED treatments?
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  6. NAnderson1
    Your health could significantly benefit when you acquire https://winterssolutions.com/item/super-active-pack-20/ .
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  7. johnjohnson37
    Browse our website to discover the https://midsouthprc.org/product/peni-large/ - buy peni large online .
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  8. Alliedentiinf16
    Visit https://gourmetchocolatenbg.com/canadian-ozempic/  to acquire your prescription.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  9. James11
    Oftentimes, patients ask whether https://skywaycorvetteclub.com/generic-nizagara-online/  is safe for their needs.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  10. FreshSpot
    X-ray your options for HIV management by exploring affordable solutions. Discover https://gourmetchocolatenbg.com/product/ozempic-capsules/  to combine efficacy with economy.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
      1 2 3 4 5