首先前端用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. markgarcia23
    One, understanding the correct use of https://laurielindeen.com/product/lasix/  can improve treatment outcomes.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  2. MichaelW154
    Don't wait to ask about https://renog.org/item/nizagara/  if sexual issues are involved.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  3. Med518
    Purchase brand-name alternative Bentyl for gastrointestinal relief; find out more at https://thank-you-note-examples-and-tips.com/item/bentyl/ .
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  4. JMoore90
    Explore your choices for managing stomach ulcers with https://perrycd.org/cytotec/ , accessible through our website.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  5. Karen33
    During therapy, https://ipalc.org/nizagara/  should be used with care and correct supervision.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  6. AHarris95
    Discover affordable treatments for erectile dysfunction by visiting <a href='https://onegrasstwograss.com/cialis/'>onegrasstwograss</a> , where you can purchase your drugs effortlessly.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  7. samthompson55
    You can obtain the https://whitecolumnsmotel.com/clonidine/  on the internet, providing a easy way to treat high blood pressure.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  8. jawanyPoint
    Seeking a reliable solution for one's erectile dysfunction? Discover the advantages of https://hyblavalleyvet.com/fildena/ - go here , a game-changer for boosting male well-being without the requirement of a prescription.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  9. endmedicalInfo
    Quick question: does anyone noticed positive changes with https://mnsmiles.com/product/nizagara/ ?
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  10. Karen71
    Exploring cost-effective options? Discover cheap healthcare solutions with https://glenwoodwine.com/drugs/priligy-dapoxetine/ . Secure the order immediately for optimal health benefits.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
      « 1 2 3 4 5 6 7 ... 18 »