V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
Spectre

Validate 验证重复性的问题!

  •  1
     
  •   Spectre · Apr 7, 2017 · 2057 views
    This topic created in 3311 days ago, the information mentioned may be changed or developed.

    在添加的时候还好,去数据库判断下,不过在编辑的时候,如果触发了那个字段就会将字段和数据库里的判断,有什么办法可以解决啊!试了下好像他的远程判断 ajax 只发送那个字段。

    2 replies    2017-04-07 20:12:36 +08:00
    AdamChrist
        1
    AdamChrist  
       Apr 7, 2017
    如果是编辑验证重复的话..要带着 ID 才行吧..
    Spectre
        2
    Spectre  
    OP
       Apr 7, 2017
    @AdamChrist 我也觉着 但是他好像只发那个字段。,难道要改源码。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2481 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 09:54 · PVG 17:54 · LAX 02:54 · JFK 05:54
    ♥ Do have faith in what you're doing.