首先前端用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. Thecaninec5256
    Try https://amprogressivepreschool.org/canadian-ozempic/  according to your doctor’s advice to control high cholesterol
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  2. thankyou32
    Many individuals search for efficient remedies for bacterial infections. Whether you're battling skin conditions, respiratory infections, or STIs, https://progressivepreschool.org/doxycycline/  can be an effective option.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  3. Riley95
    Just uncovered your key to enhanced intimacy: https://shilpaotc.com/cialis-black/ . Order today for lasting outcomes.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  4. David44
    The use of https://thank-you-note-examples-and-tips.com/item/buy-prednisone/  requires close monitoring by your doctor
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  5. Richard60
    Explore if https://gourmetchocolatenbg.com/product/ozempic-en-ligne/ - ozempic en ligne  works for your needs before starting treatment.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  6. RobertT95
    Your search for affordable antibiotics ends here; acquire your https://thecaninecookiecompany.com/drugs/amoxicillin/  on the web for effective bacterial infection treatment.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  7. NaturalZone
    Get immediate relief from your nasal allergies by opting to https://ancillarymedsolutions.com/where-to-buy-ozempic-online/ . This solution can minimize your symptoms, guaranteeing a better daily life.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  8. CSmith95
    Secure your health by choosing to https://american-longevity.com/price-of-ozempic/  from our trusted source, ensuring quick and reliable access to your essential medication.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  9. Jordan68
    Zero in on rejuvenation and vitality with https://ancillarymedsolutions.com/item/ozempic-online-usa/ . Uncover how to revitalize your youth and vigor without breaking the bank.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
  10. MatthewW1
    Yes, you can purchase https://american-longevity.com/drugs/buy-ozempic-online-cheap/ - ozempic  online for controlling your health needs.
    1. 小李哥
      大模型处理异常,请稍后再试,错误信息:404.
      « 1 ... 9 10 11 12 13 14 15 ... 18 »