zoukankan      html  css  js  c++  java
  • 1115 视频的阅读数目 更改

            NSString *readStr=[NSString stringWithFormat:@"%@", [newsLIST objectForKey:@"readnum"]];

            NSString  *readDa = readStr;

            if (readStr.length>=5) {

                NSInteger redNum = [readStr integerValue];

                NSString  *one,*two;

                NSInteger  onee = redNum/10000;

                one = [NSString stringWithFormat:@"%zd",onee];

                

                NSInteger  twoo = redNum%10000;

                twoo = twoo/1000;

                two = [NSString stringWithFormat:@"%zd",twoo];

                if (one.length>1) {

                    readDa=[NSString stringWithFormat:@"%@",one];

      

                }else{

                    readDa=[NSString stringWithFormat:@"%@.%@",one,two];

     

                

                }

                

            }else{

                readDa=[NSString stringWithFormat:@"%@", [newsLIST objectForKey:@"readnum"]];

                

            }

            

  • 相关阅读:
    【转】合并两个List并去掉重复项
    vue父子组件的通信
    深入理解--VUE组件中数据的存放以及为什么组件中的data必需是函数
    Vue-组件模板抽离的写法
    VUE-父组件和子组件
    vue -全局组件和局部组件
    vue-组件化开发基础
    vue---v-model的详细解答
    map、filter、reduce函数的使用
    vue--购物车案例(小知识点总结)
  • 原文地址:https://www.cnblogs.com/gzz2016/p/6064490.html
Copyright © 2011-2022 走看看