Html clode:
<script>
srpTupleJson = [{"name":"Praveen Mishra","title":"B.Tech in Computers Science with 1 year exp. in python\/django","isPremium":false,"isFeatured":false,"isNew":false,"employement":{"current":{"designation":"Python Developer","organization":"Freelancing Project"},"previous":{"designation":"Python Developer","organization":"Derwent Technologies Pvt
</script>如何使用量角器验证srpTupleJson数据在列表或字符串中。
发布于 2017-01-11 07:47:54
这并不是量角器特有的,它与javascript有关。
您可以使用typeof。例如:
if( typeof someVariable === 'object' ) {
/* Do something */
}else if(typeof someVariable === 'string' ){
/* Do something */
}https://stackoverflow.com/questions/41533821
复制相似问题