| 1234567891011121314151617181920212223242526 |
- function failure(data) {
- console.log(data);
- alert(data.message);
- }
- function splitValue(str) {
- if (str) {
- if (str.length > 0) {
- return str.split(',');
- }
- }
- return [];
- }
- function joinValue(o, split) {
- var s = ',';
- if (split) {
- s = '' + split;
- }
- if (o) {
- if (toString.apply(o) === '[object Array]') {
- return o.join(s);
- }
- }
- return o;
- }
|