js

    技术2026-05-10  5

    //goods/goods.js

    function use_percent ( e ) {     if ( !$(e).attr( 'checked' ) ) {         $( '#txt_percent' ).attr( 'disabled', '' );     } else {         $( '#txt_percent' ).attr( 'disabled', 'disabled' );         $( '.goods_cost' ).attr( 'disabled', 'disabled' );     } } function use_revenue ( e ) {     if ( !$(e).attr( 'checked' ) ) {         $( '#txt_revenue' ).attr( 'disabled', '' );     } else {         $( '#txt_revenue' ).attr( 'disabled', 'disabled' );     } }

    最新回复(0)