wgx0428

1、引用国外开源Linq写法的js框架

地址:https://archive.codeplex.com/?p=jslinq

https://www.nuget.org/packages/jslinq

说明实例:https://www.cnblogs.com/landeanfen/p/4672542.html

<script src="js/linq.js"></script>

<script type="text/javascript" >
            
            var packJson = [
                {"name":"zhang", "password":"123"},
                {"name":"li", "password":"456"}
            ];
            var name="li";
            var de=Enumerable.From(packJson).Where("x=>x.name==\'"+name+"\'").ToArray();
            if(de!=null && de[0]!=null){
                console.log(de[0].password);    
            }
</script>

 

分类:

技术点:

相关文章:

  • 2021-11-05
  • 2021-10-25
  • 2021-10-15
  • 2021-09-17
  • 2021-11-06
  • 2021-11-20
  • 2021-11-09
  • 2021-09-05
猜你喜欢
  • 2021-11-05
  • 2021-11-05
  • 2021-10-15
  • 2021-12-24
  • 2021-04-22
  • 2021-05-29
  • 2021-09-14
相关资源
相似解决方案