﻿$(function() {
    window.userToStore = function(typeId, targetId) {
        $.get('/store.axd', { type: typeId, id: targetId }, function(data) {
            alert(data);
        }, 'text');
        return false;
    };
    window.copyContent = function(id) {
        var text = $("#" + id).html();
        $.copy(text);
        alert("成功到剪贴板");
        return false;
    };
    window.swithTab = function(now, showNow, pass, hiddenPass, cls) {
        $(now).attr('class', cls);
        $(hiddenPass).each(function(i) { 
            $(this).css('display', 'none');
        });
        $(pass).each(function(i) { 
            $(this).attr('class', ''); 
        });
        $(showNow).css('display', '');
    };
});
