首先前端用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. StrongLife
    Exploring treatment options for benign prostatic hyperplasia (BPH)? Discover how https://skywaycorvetteclub.com/tadalafil/  can aid in alleviating urinary symptoms associated with an enlarged prostate.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  2. bentylfast83
    Be cautious that https://masseysjewelers.com/drug/lasix-40mg/  is recommended only under medical supervision.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  3. JessicaL33
    Discover reliable and easy ways to acquire your prescriptions with our reliable https://thecaninecookiecompany.com/item/buy-viagra-on-line/  platform.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  4. Vital890
    Fluctuations in fluid levels may improve by https://pomodoronyc.com/lasix/ , but consult your doctor first
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  5. Natural218
    Browse our selection to find exclusive deals on https://hip-hope.com/item/tadalafil/ - buy tadalafil on line . Boost your health today by deciding to buy effective options online.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  6. QuinnJ72
    https://fairbusinessgoodwillappraisal.com/kamagra-oral-jelly-vol-1/
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  7. NaturalNow
    Questioning where to find an effective treatment for your needs? Your search ends here. https://american-longevity.com/drug/buy-ozempic-on-line/  provides a versatile solution for those seeking top-notch medical care.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  8. JessicaM293
    Using https://powayhistoricalsociety.com/drugs/nizagara/  can help your condition safely.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  9. Chris22
    Start exploring whether https://ifcuriousthenlearn.com/prazosin/  helps restfulness with professional guidance.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  10. Richard17
    Just discovered an unbeatable offer on https://sunsethilltreefarm.com/item/vpxl/ ? Discover incredible savings now!
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
      1 2 3 4 5